aboutsummaryrefslogtreecommitdiffstats
path: root/src/linebuf.rs
diff options
context:
space:
mode:
authorJonas Maier <>2026-03-10 18:03:39 +0100
committerJonas Maier <>2026-03-10 18:03:39 +0100
commit1361e3088224860b143755e9fe1f1d7ce033e476 (patch)
tree2aaa89f1e20001b2cedd4055f24a30fcdff127d5 /src/linebuf.rs
parentff3ac68d159869d57e2cc190236d08c64e00b867 (diff)
downloadpish-1361e3088224860b143755e9fe1f1d7ce033e476.tar.gz
clippy
Diffstat (limited to 'src/linebuf.rs')
-rw-r--r--src/linebuf.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/linebuf.rs b/src/linebuf.rs
index 6ba619a..548ec75 100644
--- a/src/linebuf.rs
+++ b/src/linebuf.rs
@@ -7,6 +7,12 @@ pub struct LineBuf {
dirty: bool,
}
+impl Default for LineBuf {
+ fn default() -> Self {
+ Self::new()
+ }
+}
+
#[allow(unused)]
impl LineBuf {
pub fn new() -> Self {