aboutsummaryrefslogtreecommitdiff
path: root/rprt-engine/src/buffer.rs
diff options
context:
space:
mode:
authortslil <tslil@posteo.de>2025-10-18 15:15:02 +0100
committertslil <tslil@posteo.de>2025-10-18 17:00:19 +0100
commit9a845a610aaf42aaba301d7b0ce1c88096d36915 (patch)
tree13cfdea2a93c2d95e4f9ebcbfae6306fa5da7eea /rprt-engine/src/buffer.rs
parent7cb0b2d8f1dad40e7b90ced7b19bb32aaf0eaff3 (diff)
Beginning lexing & parsing work, probably looking at hand rolled recursive descent parser
Diffstat (limited to 'rprt-engine/src/buffer.rs')
-rw-r--r--rprt-engine/src/buffer.rs10
1 files changed, 2 insertions, 8 deletions
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 }
}
}