Skip to content

Commit

Permalink
Fix no_std build
Browse files Browse the repository at this point in the history
  • Loading branch information
Avi-D-coder committed Mar 29, 2024
1 parent e8a4a4d commit 9aceddb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions src/errors.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
use alloc::{
boxed::Box,
string::{String, ToString},
};
use core::fmt::{self, Display, Formatter};

#[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]
Expand Down
2 changes: 1 addition & 1 deletion src/hash.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use alloc::{rc::Rc, sync::Arc};
use alloc::{boxed::Box, rc::Rc, string::String, sync::Arc, vec::Vec};

pub trait PortableHasher<const LEN: usize>: PortableUpdate + Default {
fn finalize_reset(&mut self) -> [u8; LEN];
Expand Down

0 comments on commit 9aceddb

Please sign in to comment.