Skip to content

Commit 7a8cd54

Browse files
committed
Clippy fixes
1 parent 599090e commit 7a8cd54

File tree

3 files changed

+6
-7
lines changed

3 files changed

+6
-7
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "chumsky"
3-
version = "0.10.1"
3+
version = "0.11.0"
44
description = "A parser library for humans with powerful error recovery"
55
authors = ["Joshua Barretto <joshua.s.barretto@gmail.com>", "Elijah Hartvigsen <elijah.reed@hartvigsen.xyz", "Jakob Wiesmore <runetynan@gmail.com>"]
66
repository = "https://github.com/zesterer/chumsky"

src/combinator.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -526,7 +526,6 @@ where
526526
go_extra!(I::Span);
527527
}
528528

529-
530529
/// See [`Parser::try_foldl`].
531530
pub struct TryFoldl<F, A, B, OB, E> {
532531
pub(crate) parser_a: A,
@@ -579,7 +578,7 @@ where
579578
Err(err) => {
580579
inp.add_alt_err(&before.inner, err);
581580
break Err(());
582-
},
581+
}
583582
}
584583
}
585584
Ok(None) => break Ok(M::bind(|| out)),

src/lib.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3265,7 +3265,7 @@ mod tests {
32653265
atom.clone()
32663266
.then_ignore(just('+'))
32673267
.then(atom.clone())
3268-
.map(|(a, b)| format!("{}{}", a, b))
3268+
.map(|(a, b)| format!("{a}{b}"))
32693269
.memoized()
32703270
.or(atom)
32713271
})
@@ -3295,7 +3295,7 @@ mod tests {
32953295
.clone()
32963296
.then_ignore(just('+'))
32973297
.then(expr)
3298-
.map(|(a, b)| format!("{}{}", a, b))
3298+
.map(|(a, b)| format!("{a}{b}"))
32993299
.memoized();
33003300

33013301
sum.or(atom)
@@ -3325,7 +3325,7 @@ mod tests {
33253325
// .clone()
33263326
// .then_ignore(just('+'))
33273327
// .then(expr)
3328-
// .map(|(a, b)| format!("{}{}", a, b));
3328+
// .map(|(a, b)| format!("{a}{b}"));
33293329

33303330
// sum.or(atom)
33313331
// })
@@ -3444,7 +3444,7 @@ mod tests {
34443444
.clone()
34453445
.then_ignore(just('+'))
34463446
.then(expr.clone())
3447-
.map(|(a, b)| format!("{}{}", a, b));
3447+
.map(|(a, b)| format!("{a}{b}"));
34483448

34493449
sum.or(atom)
34503450
});

0 commit comments

Comments
 (0)