Skip to content
This repository was archived by the owner on Apr 5, 2024. It is now read-only.

Commit eff2d7d

Browse files
committed
Fix clippy issues
1 parent d6f9281 commit eff2d7d

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/bin/cargo_semver.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,9 @@ fn run(config: &cargo::Config, matches: &getopts::Matches, explain: bool) -> Res
179179
extern crate new;"
180180
))?;
181181
} else {
182-
return Err(failure::err_msg("could not pipe to rustc (wtf?)".to_owned()).into());
182+
return Err(failure::err_msg(
183+
"could not pipe to rustc (wtf?)".to_owned(),
184+
));
183185
}
184186

185187
let exit_status = child
@@ -438,15 +440,13 @@ pub fn find_on_crates_io(crate_name: &str) -> Result<crates_io::Crate> {
438440
"failed to retrieve search results from the registry: {}",
439441
e
440442
))
441-
.into()
442443
})
443444
.and_then(|(mut crates, _)| {
444445
crates
445446
.drain(..)
446447
.find(|krate| krate.name == crate_name)
447448
.ok_or_else(|| {
448449
failure::err_msg(format!("failed to find a matching crate `{}`", crate_name))
449-
.into()
450450
})
451451
})
452452
}

src/changes.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -875,7 +875,7 @@ impl<'tcx> ChangeSet<'tcx> {
875875
pub fn trait_item_breaking(&self, old: DefId) -> bool {
876876
self.changes
877877
.get(&old)
878-
.map_or(false, |change| change.trait_item_breaking())
878+
.map_or(false, Change::trait_item_breaking)
879879
}
880880

881881
/// Format the contents of a change set for user output.

0 commit comments

Comments
 (0)