# HG changeset patch
# User Antoine cezar<acezar@chwitlabs.fr>
# Date 2020-09-28 12:01:57
# Node ID 48438e8968a2bc14a42925a28d7ddecd13afa0a3
# Parent  da30e4b553c3f0a25357457c8a7e076b3ec20661

hg-core: remove useless code (D8958#inline-14988 followup)

Differential Revision: https://phab.mercurial-scm.org/D9099

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
         }
     }