Lint & format
This commit is contained in:
parent
b0f56c7688
commit
e910d9c5f4
7 changed files with 30 additions and 128 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue