File tree 4 files changed +5
-5
lines changed
4 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ pub struct BuildBuilder<'a> {
42
42
patches : Vec < CratePatch > ,
43
43
}
44
44
45
- impl < ' a > BuildBuilder < ' a > {
45
+ impl BuildBuilder < ' _ > {
46
46
/// Add a git-based patch to this build.
47
47
/// Patches get added to the crate's Cargo.toml in the `patch.crates-io` table.
48
48
/// # Example
Original file line number Diff line number Diff line change @@ -169,7 +169,7 @@ pub trait Runnable {
169
169
}
170
170
}
171
171
172
- impl < ' a > Runnable for & ' a str {
172
+ impl Runnable for & str {
173
173
fn name ( & self ) -> Binary {
174
174
Binary :: Global ( self . into ( ) )
175
175
}
@@ -181,7 +181,7 @@ impl Runnable for String {
181
181
}
182
182
}
183
183
184
- impl < ' a , B : Runnable > Runnable for & ' a B {
184
+ impl < B : Runnable > Runnable for & B {
185
185
fn name ( & self ) -> Binary {
186
186
Runnable :: name ( * self )
187
187
}
Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ mod tests {
60
60
#[ test]
61
61
fn test_kill_process ( ) {
62
62
// Try to kill a sleep command
63
- let mut cmd = Command :: new ( "timeout" ) . args ( & [ "2" ] ) . spawn ( ) . unwrap ( ) ;
63
+ let mut cmd = Command :: new ( "timeout" ) . args ( [ "2" ] ) . spawn ( ) . unwrap ( ) ;
64
64
kill_process ( cmd. id ( ) ) . unwrap ( ) ;
65
65
66
66
// Ensure it returns the code passed to `TerminateProcess`
Original file line number Diff line number Diff line change @@ -183,7 +183,7 @@ mod windows_tests {
183
183
let first_component = p. components ( ) . next ( ) . unwrap ( ) ;
184
184
185
185
if let Component :: Prefix ( prefix) = & first_component {
186
- let stripped = strip_verbatim_from_prefix ( & prefix) ;
186
+ let stripped = strip_verbatim_from_prefix ( prefix) ;
187
187
assert_eq ! ( stripped. as_ref( ) . map( |p| p. to_str( ) . unwrap( ) ) , output) ;
188
188
} else {
189
189
assert ! ( output. is_none( ) ) ;
You can’t perform that action at this time.
0 commit comments