We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e0e6584 commit 9a474cbCopy full SHA for 9a474cb
src/address_allocator.rs
@@ -66,9 +66,9 @@ impl AddressAllocator {
66
policy: AllocPolicy,
67
) -> Result<RangeInclusive> {
68
let constraint = Constraint::new(size, alignment, policy)?;
69
- let allocated = self.interval_tree.allocate(constraint);
+ let allocated = self.interval_tree.allocate(constraint)?;
70
self.available -= allocated.len() as usize;
71
- allocated
+ Ok(allocated)
72
}
73
74
/// Deletes the specified memory slot or returns `ResourceNotAvailable` if
0 commit comments