Make clippy happy

This commit is contained in:
Konstantin Knizhnik
2023-03-09 17:51:52 +02:00
parent 451479305e
commit be22be7b24

View File

@@ -6,7 +6,7 @@ use tracing::debug;
///
/// Represents a set of Keys, in a compact form.
///
#[derive(Clone, Debug)]
#[derive(Clone, Debug, Default)]
pub struct KeySpace {
/// Contiguous ranges of keys that belong to the key space. In key order,
/// and with no overlap.
@@ -116,13 +116,6 @@ impl KeySpace {
Err(index) => self.ranges[index - 1].end > range.start,
}
}
///
/// Construct empty key space
///
pub fn new() -> Self {
KeySpace { ranges: Vec::new() }
}
}
///