rust/hg-core/src/revlog/node.rs
changeset 44258 e52401a95b94
parent 44257 9896a8d0d3d2
child 44262 be52b7372ec2
--- a/rust/hg-core/src/revlog/node.rs	Fri Dec 27 23:04:18 2019 +0100
+++ b/rust/hg-core/src/revlog/node.rs	Thu Jan 23 17:18:13 2020 +0100
@@ -253,7 +253,7 @@
     /// Pad an hexadecimal string to reach `NODE_NYBBLES_LENGTH`
     ///
     /// The padding is made with zeros
-    fn hex_pad_right(hex: &str) -> String {
+    pub fn hex_pad_right(hex: &str) -> String {
         let mut res = hex.to_string();
         while res.len() < NODE_NYBBLES_LENGTH {
             res.push('0');
@@ -362,3 +362,6 @@
         Ok(())
     }
 }
+
+#[cfg(test)]
+pub use tests::hex_pad_right;