Lint & format

This commit is contained in:
Andras Schmelczer 2024-11-24 20:09:17 +00:00
parent b0f56c7688
commit e910d9c5f4
No known key found for this signature in database
GPG key ID: FC8F2C3D3D1A718C
7 changed files with 30 additions and 128 deletions

View file

@ -149,12 +149,6 @@ impl Operation {
}
}
/// The operation cannot be empty.
pub fn is_empty(&self) -> bool {
debug_assert!(self.len() > 0, "Operation cannot be empty");
false
}
/// Clones the operation while updating the index.
pub fn with_index(self, index: usize) -> Self {
match self {