diff options
Diffstat (limited to 'src/parser.rs')
-rw-r--r-- | src/parser.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/parser.rs b/src/parser.rs index 9938924..6a6459b 100644 --- a/src/parser.rs +++ b/src/parser.rs @@ -1,5 +1,5 @@ use clap::{Parser, Subcommand}; -use std::str::FromStr; +use std::{path::PathBuf, str::FromStr}; use thiserror::Error; #[derive(Parser, Clone, Debug, PartialEq, Eq)] @@ -35,14 +35,14 @@ pub struct GitUploadPackArgs { pub stateless_rpc: bool, #[arg(long)] pub advertise_refs: bool, - pub directory: String, + pub directory: PathBuf, } #[derive(Parser, Clone, Debug, PartialEq, Eq)] pub struct GitReceivePackArgs { #[arg(long)] pub http_backend_info_refs: bool, - pub directory: String, + pub directory: PathBuf, } #[derive(Error, Debug)] @@ -98,7 +98,7 @@ mod test { timeout: None, stateless_rpc: true, advertise_refs: false, - directory: "foobar.git".to_owned(), + directory: PathBuf::from("foobar.git"), }) ); } |