Skip to content

Commit

Permalink
chore: clean up warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
cfcosta committed Sep 26, 2023
1 parent 05823e6 commit d8ebbba
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 1 addition & 5 deletions const_format/src/__str_methods/str_split.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,7 @@ impl SplitInput {
}
}

pub const fn count_splits(
SplitInput {
mut str, pattern, ..
}: SplitInput,
) -> usize {
pub const fn count_splits(SplitInput { str, pattern, .. }: SplitInput) -> usize {
let mut count = 1;

match pattern.normalize() {
Expand Down
2 changes: 2 additions & 0 deletions const_format/src/macros/helper_macros.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ macro_rules! __for_range{
})
}

#[doc(hidden)]
#[macro_export]
macro_rules! identity {
($($tt:tt)*) => { $($tt)* };
}
Expand Down

0 comments on commit d8ebbba

Please sign in to comment.