diff --git a/src/main.rs b/src/main.rs index 6299f21..b3f8787 100644 --- a/src/main.rs +++ b/src/main.rs @@ -6,7 +6,7 @@ use std::{ use clap::Parser; use rand::distributions::{Alphanumeric, DistString}; -fn rename_or_copy, Q: AsRef>(from: P, to: Q) -> io::Result<()> { +fn rename_or_copy(from: impl AsRef, to: impl AsRef) -> io::Result<()> { match fs::rename(&from, &to) { Ok(result) => Ok(result), Err(_) => {