Skip to content

Commit af37d5c

Browse files
llogiqmcginty
authored andcommitted
fixed some clippy warnings
closes #30
1 parent 4382ab5 commit af37d5c

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/lib.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -264,17 +264,15 @@ impl Target {
264264
fn looks_like_file_path(&self) -> bool {
265265
let target = self.clone();
266266
let path = match target {
267-
Target::Local(s) => s,
268-
Target::Remote((_, s)) => s,
267+
Target::Local(s) | Target::Remote((_, s)) => s,
269268
};
270269
Path::new(&path).file_name().is_some()
271270
}
272271

273272
fn get_path(&self) -> PathBuf {
274273
let target = self.clone();
275274
let path = match target {
276-
Target::Local(s) => s,
277-
Target::Remote((_, s)) => s,
275+
Target::Local(s) | Target::Remote((_, s)) => s,
278276
};
279277
PathBuf::from(&path)
280278
}

0 commit comments

Comments
 (0)