From 552bab6ba9652f11e904d53795575f67206c9543 Mon Sep 17 00:00:00 2001 From: Julien Cretin Date: Mon, 26 Oct 2020 17:51:40 +0100 Subject: [PATCH] Remove public visibility for internal function --- libraries/persistent_store/src/format.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/persistent_store/src/format.rs b/libraries/persistent_store/src/format.rs index c36d19e..47419c1 100644 --- a/libraries/persistent_store/src/format.rs +++ b/libraries/persistent_store/src/format.rs @@ -795,7 +795,7 @@ pub fn is_erased(slice: &[u8]) -> bool { /// Divides then takes ceiling. /// /// Returns `ceil(x / m)` with mathematical notations. Assumes `x + m` does not overflow. -pub const fn div_ceil(x: usize, m: usize) -> usize { +const fn div_ceil(x: usize, m: usize) -> usize { (x + m - 1) / m }