diff --git a/crates/rle/src/rle_tree/iter.rs b/crates/rle/src/rle_tree/iter.rs index 917fb627..b5a19b65 100644 --- a/crates/rle/src/rle_tree/iter.rs +++ b/crates/rle/src/rle_tree/iter.rs @@ -1,7 +1,6 @@ use crate::Rle; use super::{ - cursor::UnsafeCursor, node::LeafNode, tree_trait::{Position, RleTreeTrait}, SafeCursor, diff --git a/crates/rle/src/rle_tree/nonnull.rs b/crates/rle/src/rle_tree/nonnull.rs index 249584c1..e21d5d7d 100644 --- a/crates/rle/src/rle_tree/nonnull.rs +++ b/crates/rle/src/rle_tree/nonnull.rs @@ -3,7 +3,7 @@ use std::ptr::NonNull; use crate::{HasLength, Mergable, Sliceable}; impl Mergable for NonNull { - fn is_mergable(&self, other: &Self, _conf: &()) -> bool + fn is_mergable(&self, _other: &Self, _conf: &()) -> bool where Self: Sized, { @@ -19,7 +19,7 @@ impl Mergable for NonNull { } impl Sliceable for NonNull { - fn slice(&self, from: usize, to: usize) -> Self { + fn slice(&self, _from: usize, _to: usize) -> Self { *self } }