From 9a845a610aaf42aaba301d7b0ce1c88096d36915 Mon Sep 17 00:00:00 2001 From: tslil Date: Sat, 18 Oct 2025 15:15:02 +0100 Subject: Beginning lexing & parsing work, probably looking at hand rolled recursive descent parser --- rprt-engine/src/buffer.rs | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'rprt-engine/src/buffer.rs') diff --git a/rprt-engine/src/buffer.rs b/rprt-engine/src/buffer.rs index f536054..f2c6e0f 100644 --- a/rprt-engine/src/buffer.rs +++ b/rprt-engine/src/buffer.rs @@ -11,10 +11,7 @@ pub struct Buffer { impl Buffer { pub fn new(name: String, content: String) -> Self { - Self { - name, - content, - } + Self { name, content } } fn generate_shell_name(command: &str) -> String { @@ -43,9 +40,6 @@ impl Buffer { Err(e) => format!("Command failed: {}", e), }; - Self { - name, - content, - } + Self { name, content } } } -- cgit v1.2.3