Skip to content

Commit

Permalink
Fix build and test
Browse files Browse the repository at this point in the history
  • Loading branch information
shuhuiluo committed Jul 9, 2024
1 parent 96d8b3c commit 04fcf1c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,4 @@ jobs:
run: cargo build

- name: Run tests
run: cargo test
run: cargo test --all-features
2 changes: 1 addition & 1 deletion src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ pub enum Error {
Incorrect(),
}

#[cfg(test)]
#[cfg(any(feature = "std", test))]
mod tests {
use super::*;

Expand Down
5 changes: 4 additions & 1 deletion src/prelude.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,10 @@ pub use crate::{
error::Error,
utils::*,
};
pub use alloc::{string::String, vec::Vec};
pub use alloc::{
string::{String, ToString},
vec::Vec,
};
pub use alloy_primitives::{address, Address};
pub use bigdecimal::{BigDecimal, RoundingMode};
pub use core::{
Expand Down

0 comments on commit 04fcf1c

Please sign in to comment.