Skip to content

Commit

Permalink
Remove some warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
AljoschaMeyer committed Aug 8, 2024
1 parent 78fd011 commit e7c53f4
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 9 deletions.
4 changes: 0 additions & 4 deletions ufotofu/src/common/consumer/into_vec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,6 @@ impl<T: Default> IntoVec<T> {
self.0.remaining_slots()
}

pub(crate) fn make_space_if_needed(&mut self) {
self.0.make_space_if_needed().expect("Out of memory")
}

pub(crate) fn make_space_even_if_not_needed(&mut self) {
self.0
.make_space_even_if_not_needed()
Expand Down
4 changes: 0 additions & 4 deletions ufotofu/src/common/consumer/into_vec_fallible.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,6 @@ impl<T> IntoVecFallible_<T> {
}

impl<T: Default> IntoVecFallible_<T> {
pub(crate) fn make_space_if_needed(&mut self) -> Result<(), TryReserveError> {
self.0.as_mut().make_space_if_needed()
}

pub(crate) fn make_space_even_if_not_needed(&mut self) -> Result<(), TryReserveError> {
self.0.as_mut().make_space_even_if_not_needed()
}
Expand Down
1 change: 0 additions & 1 deletion ufotofu/src/common/consumer/test_consumer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ use core::cmp::min;
use core::fmt::Debug;
use core::marker::PhantomData;
use core::num::NonZeroUsize;
use std::println;

#[cfg(all(feature = "alloc", not(feature = "std")))]
use alloc::{boxed::Box, vec::Vec};
Expand Down

0 comments on commit e7c53f4

Please sign in to comment.