diff --git a/src/gtree.rs b/src/gtree.rs index 2355a17..3bb6416 100644 --- a/src/gtree.rs +++ b/src/gtree.rs @@ -1052,7 +1052,7 @@ impl Gtree { }, } - if !inode.len() == 0 { + if inode.len() != 0 { assert_eq!(child_lengths, inode.len()); } } diff --git a/src/utils.rs b/src/utils.rs index 5e1acf9..a8a2deb 100644 --- a/src/utils.rs +++ b/src/utils.rs @@ -1,4 +1,3 @@ -use core::cmp::Ord; use core::fmt::{Debug, Formatter, Result as FmtResult}; use core::ops::{Add, Range as StdRange, RangeBounds, Sub}; diff --git a/src/version_map.rs b/src/version_map.rs index 4a59cdd..9b68c17 100644 --- a/src/version_map.rs +++ b/src/version_map.rs @@ -1,4 +1,4 @@ -use core::cmp::{Ordering, PartialOrd}; +use core::cmp::Ordering; use crate::{DeletionTs, Length, ReplicaId, ReplicaIdMap};