diff options
| author | Ruben Beltran del Rio <git@r.bdr.sh> | 2025-01-05 15:48:16 +0100 |
|---|---|---|
| committer | Ruben Beltran del Rio <git@r.bdr.sh> | 2025-01-05 15:48:16 +0100 |
| commit | b17907faf8d9693cef94a6048d802bd4ced9102f (patch) | |
| tree | 1bd87c40e85af675a96b63672163b4caaa174364 /src/remote/git.rs | |
| parent | d7fef30ac3f539975ef9edbba8e0af4a4e9ff3de (diff) | |
Deal with all lints
Diffstat (limited to 'src/remote/git.rs')
| -rw-r--r-- | src/remote/git.rs | 6 |
1 files changed, 3 insertions, 3 deletions
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()), |