Use stable rust

This commit is contained in:
Andras Schmelczer 2026-03-11 21:07:23 +00:00
parent 31993762de
commit c2144a2634
18 changed files with 118 additions and 44 deletions

View file

@ -94,7 +94,9 @@ impl V {
}
}
fn len(&self) -> usize { self.v.len() }
fn len(&self) -> usize {
self.v.len()
}
}
impl Index<isize> for V {

View file

@ -35,7 +35,9 @@ impl StringBuilder<'_> {
}
/// Insert a string at the end of the built buffer
pub fn insert(&mut self, text: &str) { self.buffer.push_str(text); }
pub fn insert(&mut self, text: &str) {
self.buffer.push_str(text);
}
/// Skip copying `length` characters from the original string to the built
/// buffer
@ -64,7 +66,9 @@ impl StringBuilder<'_> {
/// Returns the currently built buffer and clears it to allow consuming
/// the result incrementally.
pub fn take(&mut self) -> String { std::mem::take(&mut self.buffer) }
pub fn take(&mut self) -> String {
std::mem::take(&mut self.buffer)
}
/// Get a slice of the remaining original string. The slice starts from
/// where the next delete/retain operation would start and is of length