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

Commit 9f2daf8

Browse files
committed
Applied clippy lints.
1 parent 865ac0e commit 9f2daf8

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/bin/cargo_semver.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -475,7 +475,7 @@ impl<'a> WorkInfo<'a> {
475475
}
476476

477477
if let Some(s) = matches.opt_str("features") {
478-
opts.features = s.split(" ").map(str::to_owned).collect();
478+
opts.features = s.split(' ').map(str::to_owned).collect();
479479
}
480480

481481
opts.all_features = matches.opt_present("all-features");

src/traverse.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ use std::collections::{BTreeMap, HashSet, VecDeque};
3535
/// The main entry point to our analysis passes.
3636
///
3737
/// Set up the necessary data structures and run the analysis passes and call the actual passes.
38-
pub fn run_analysis<'tcx>(tcx: TyCtxt<'tcx>, old: DefId, new: DefId) -> ChangeSet<'tcx> {
38+
pub fn run_analysis(tcx: TyCtxt, old: DefId, new: DefId) -> ChangeSet {
3939
let mut changes = ChangeSet::default();
4040
let mut id_mapping = IdMapping::new(old.krate, new.krate);
4141

@@ -74,7 +74,7 @@ fn get_vis(outer_vis: Visibility, def: Export<HirId>) -> Visibility {
7474
}
7575
}
7676

77-
pub fn run_traversal<'tcx>(tcx: TyCtxt<'tcx>, new: DefId) {
77+
pub fn run_traversal(tcx: TyCtxt, new: DefId) {
7878
use rustc::hir::def::DefKind::*;
7979
let mut visited = HashSet::new();
8080
let mut mod_queue = VecDeque::new();
@@ -1063,7 +1063,7 @@ fn diff_inherent_impls<'tcx>(
10631063
#[allow(clippy::let_and_return)]
10641064
#[allow(clippy::match_same_arms)]
10651065
fn is_impl_trait_public<'tcx>(tcx: TyCtxt<'tcx>, impl_def_id: DefId) -> bool {
1066-
fn type_visibility<'tcx>(tcx: TyCtxt<'tcx>, ty: Ty) -> Visibility {
1066+
fn type_visibility(tcx: TyCtxt, ty: Ty) -> Visibility {
10671067
match ty.sty {
10681068
TyKind::Adt(def, _) => tcx.visibility(def.did),
10691069

0 commit comments

Comments
 (0)