Skip to content

Commit 198364b

Browse files
Skglandsyphar
authored andcommitted
fix clippy
1 parent 4165248 commit 198364b

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

src/build.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ pub struct BuildBuilder<'a> {
4242
patches: Vec<CratePatch>,
4343
}
4444

45-
impl<'a> BuildBuilder<'a> {
45+
impl BuildBuilder<'_> {
4646
/// Add a git-based patch to this build.
4747
/// Patches get added to the crate's Cargo.toml in the `patch.crates-io` table.
4848
/// # Example

src/cmd/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ pub trait Runnable {
169169
}
170170
}
171171

172-
impl<'a> Runnable for &'a str {
172+
impl Runnable for &str {
173173
fn name(&self) -> Binary {
174174
Binary::Global(self.into())
175175
}
@@ -181,7 +181,7 @@ impl Runnable for String {
181181
}
182182
}
183183

184-
impl<'a, B: Runnable> Runnable for &'a B {
184+
impl<B: Runnable> Runnable for &B {
185185
fn name(&self) -> Binary {
186186
Runnable::name(*self)
187187
}

src/native/windows.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ mod tests {
6060
#[test]
6161
fn test_kill_process() {
6262
// 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();
6464
kill_process(cmd.id()).unwrap();
6565

6666
// Ensure it returns the code passed to `TerminateProcess`

src/utils.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ mod windows_tests {
183183
let first_component = p.components().next().unwrap();
184184

185185
if let Component::Prefix(prefix) = &first_component {
186-
let stripped = strip_verbatim_from_prefix(&prefix);
186+
let stripped = strip_verbatim_from_prefix(prefix);
187187
assert_eq!(stripped.as_ref().map(|p| p.to_str().unwrap()), output);
188188
} else {
189189
assert!(output.is_none());

0 commit comments

Comments
 (0)