diff rust/hg-core/src/revlog/index.rs @ 51759:7f0cb9ee0534

Backout accidental publication of a large range of revisions I accidentally published 25e7f9dcad0f::bd1483fd7088, this is the inverse.
author Rapha?l Gom?s <rgomes@octobus.net>
date Tue, 23 Jul 2024 10:02:46 +0200
parents 918ceb5a3d25
children ec7171748350
line wrap: on
line diff
--- a/rust/hg-core/src/revlog/index.rs	Mon Jul 22 16:49:38 2024 +0200
+++ b/rust/hg-core/src/revlog/index.rs	Tue Jul 23 10:02:46 2024 +0200
@@ -1387,7 +1387,6 @@
     fn vec_of_empty(sets_size: usize, vec_len: usize) -> Vec<Self>;
 
     /// The size of the bit mask in memory
-    #[allow(unused)]
     fn size(&self) -> usize;
 
     /// The number of elements that can be represented in the set.
@@ -1395,14 +1394,12 @@
     /// Another way to put it is that it is the highest integer `C` such that
     /// the set is guaranteed to always be a subset of the integer range
     /// `[0, C)`
-    #[allow(unused)]
     fn capacity(&self) -> usize;
 
     /// Declare `n` to belong to the set
     fn add(&mut self, n: usize);
 
     /// Declare `n` not to belong to the set
-    #[allow(unused)]
     fn discard(&mut self, n: usize);
 
     /// Replace this bit set by its union with other
@@ -1752,9 +1749,6 @@
 }
 
 #[cfg(test)]
-pub use tests::IndexEntryBuilder;
-
-#[cfg(test)]
 mod tests {
     use super::*;
     use crate::node::NULL_NODE;
@@ -2033,3 +2027,6 @@
         assert_eq!(get_version(&bytes), 2)
     }
 }
+
+#[cfg(test)]
+pub use tests::IndexEntryBuilder;