Skip to content

Commit f8b0588

Browse files
Fix clippy
1 parent df62f7a commit f8b0588

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/prelude.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ pub trait FailExt {
99
}
1010

1111
impl FailExt for dyn Fail {
12+
#[allow(clippy::manual_map)]
1213
fn downcast_ctx<T: Fail>(&self) -> Option<&T> {
1314
if let Some(res) = self.downcast_ref::<T>() {
1415
Some(res)

src/runner/unstable_features.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ fn eat_token<'a>(s: Option<&'a str>, tok: &str) -> Option<&'a str> {
7777

7878
fn eat_whitespace(s: Option<&str>) -> Option<&str> {
7979
s.and_then(|s| {
80+
#[allow(clippy::manual_map)]
8081
if let Some(i) = s.find(|c: char| !c.is_whitespace()) {
8182
Some(&s[i..])
8283
} else {

0 commit comments

Comments
 (0)