indexer: rm canopy+sanakirja + init rollback; svec: added truncate

This commit is contained in:
nym21
2025-02-15 12:04:20 +01:00
parent 06b2186bf9
commit a122333aaa
17 changed files with 195 additions and 811 deletions
+4
View File
@@ -33,6 +33,10 @@ impl Height {
pub fn write(&self, path: &Path) -> Result<(), io::Error> {
fs::write(path, self.as_bytes())
}
pub fn decremented(&self) -> Self {
Self(self.0.checked_sub(1).unwrap_or_default())
}
}
impl PartialEq<u64> for Height {