You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
rust-rd-util/SOURCES/0001-Disambiguate-num-Integ...

26 lines
755 B

From f7f8d914d12ded4528fe4367854fbd939742f3a1 Mon Sep 17 00:00:00 2001
From: Fabio Valentini <decathorpe@gmail.com>
Date: Mon, 9 Oct 2023 00:48:38 +0200
Subject: [PATCH] Disambiguate num::Integer::div_ceil from <number>::div_ceil
---
src/anon_area.rs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/anon_area.rs b/src/anon_area.rs
index cb37b78..d9d9b6d 100644
--- a/src/anon_area.rs
+++ b/src/anon_area.rs
@@ -61,7 +61,7 @@ impl AnonArea {
pub fn resize(&mut self, mut size: usize) {
size = size.max(Self::UNIT_SIZE);
- let nr = size.div_ceil(&Self::UNIT_SIZE);
+ let nr = Integer::div_ceil(&size, &Self::UNIT_SIZE);
self.units.truncate(nr);
self.units.reserve(nr);
--
2.41.0