Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion crates/primitives/src/signed/int.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ use ruint::{BaseConvertError, Uint, UintTryFrom, UintTryTo};
///
/// ## Aliases
///
/// We provide aliases for every bit-width divisble by 8, from 8 to 256. These
/// We provide aliases for every bit-width divisible by 8, from 8 to 256. These
/// are located in [`crate::aliases`] and are named `I256`, `I248` etc. Most
/// users will want [`crate::I256`].
///
Expand Down
2 changes: 1 addition & 1 deletion crates/sol-types/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ pub use alloy_sol_macro::sol;
pub mod private {
pub use super::{
abi::RECURSION_LIMIT,
utils::{just_ok, next_multiple_of_32, words_for, words_for_len},
utils::{next_multiple_of_32, words_for, words_for_len},
};
pub use alloc::{
borrow::{Cow, ToOwned},
Expand Down
8 changes: 0 additions & 8 deletions crates/sol-types/src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,14 +51,6 @@ pub(crate) fn pad_usize(value: usize) -> Word {
padded
}

/// Returns `Ok(())`. Exists for the [`define_udt!`](crate::define_udt!)'s
/// typecheck.
#[doc(hidden)]
#[inline]
pub const fn just_ok<T>(_: &T) -> crate::Result<()> {
Ok(())
}

#[inline]
pub(crate) fn check_zeroes(data: &[u8]) -> bool {
data.iter().all(|b| *b == 0)
Expand Down
1 change: 1 addition & 0 deletions typos.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ extend-exclude = [
"**/*_test.*",
"**/*_tests.*",
"CHANGELOG.md",
"crates/dyn-abi/src/coerce.rs", # intentional typos
"crates/primitives/src/hex_literal.rs", # hex data
"crates/sol-type-parser/src/ident.rs", # intentional typos
"crates/sol-type-parser/src/parameter.rs", # intentional typos
Expand Down
Loading