Skip to content

Commit

Permalink
chore: clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
DaniPopes committed Aug 14, 2023
1 parent 4ca2d68 commit 2799998
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/sol-type-parser/src/type_spec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ impl<'a> TypeSpecifier<'a> {
// ')' is 1 byte
(i + 1, true)
} else {
(span.find('[').unwrap_or_else(|| span.len()), false)
(span.find('[').unwrap_or(span.len()), false)
};
// spit_at_unchecked(i)
let (l, r) = unsafe { (span.get_unchecked(..i), span.get_unchecked(i..)) };
Expand All @@ -104,7 +104,7 @@ impl<'a> TypeSpecifier<'a> {
'[' => {
let mut j = 0;
let mut closed = false;
while let Some((idx, c)) = chars.next() {
for (idx, c) in chars.by_ref() {
match c {
']' => {
closed = true;
Expand Down

0 comments on commit 2799998

Please sign in to comment.