diff --git a/rust/hg-core/src/revlog/patch.rs b/rust/hg-core/src/revlog/patch.rs --- a/rust/hg-core/src/revlog/patch.rs +++ b/rust/hg-core/src/revlog/patch.rs @@ -253,7 +253,7 @@ mod tests { } pub fn get(&mut self) -> &[u8] { - &self.data[..] + &self.data } }