Add `impl Default` for TextBuffer
This commit is contained in:
parent
a621985347
commit
7b7e307a51
|
|
@ -55,6 +55,12 @@ impl TextBuffer {
|
|||
}
|
||||
}
|
||||
|
||||
impl Default for TextBuffer {
|
||||
fn default() -> Self {
|
||||
Self::new()
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use super::*;
|
||||
|
|
|
|||
Loading…
Reference in New Issue