Add `impl Default` for TextBuffer

This commit is contained in:
Matthew Gordon 2025-10-21 22:13:56 -03:00
parent a621985347
commit 7b7e307a51
1 changed files with 6 additions and 0 deletions

View File

@ -55,6 +55,12 @@ impl TextBuffer {
}
}
impl Default for TextBuffer {
fn default() -> Self {
Self::new()
}
}
#[cfg(test)]
mod tests {
use super::*;