From b17907faf8d9693cef94a6048d802bd4ced9102f Mon Sep 17 00:00:00 2001 From: Ruben Beltran del Rio Date: Sun, 5 Jan 2025 15:48:16 +0100 Subject: Deal with all lints --- src/remote/git.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/remote/git.rs') diff --git a/src/remote/git.rs b/src/remote/git.rs index a8a9010..5a79164 100644 --- a/src/remote/git.rs +++ b/src/remote/git.rs @@ -1,5 +1,5 @@ use std::io::{Error, ErrorKind::Other, Result}; -use std::path::PathBuf; +use std::path::Path; use std::process::{Command, Stdio}; use std::time::{SystemTime, UNIX_EPOCH}; @@ -17,7 +17,7 @@ impl super::Remote for Git { true } - fn sync_up(&self, remote: &str, directory: &PathBuf) -> Result<()> { + fn sync_up(&self, remote: &str, directory: &Path) -> Result<()> { let timestamp = SystemTime::now() .duration_since(UNIX_EPOCH) .map_err(|_| Error::new(Other, "Invalid time"))? @@ -51,7 +51,7 @@ impl super::Remote for Git { Ok(()) } - fn sync_down(&self, remote: &str, directory: &PathBuf) -> Result<()> { + fn sync_down(&self, remote: &str, directory: &Path) -> Result<()> { let commands = vec![ format!("cd {} && git init -b main", directory.display()), format!("cd {} && git checkout .", directory.display()), -- cgit