File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -72,7 +72,7 @@ pub struct DownloadArgs {
72
72
long,
73
73
help = "Rename the file to be downloaded" ,
74
74
value_name = "FILE" ,
75
- value_parser = check_file_name
75
+ value_parser = validate_file_name
76
76
) ]
77
77
pub rename : Option < String > ,
78
78
@@ -151,7 +151,7 @@ fn validate_output_target(target: &str) -> Result<PathBuf, String> {
151
151
}
152
152
153
153
/// Helper function to validate the option [-r, -rename] of the download command
154
- fn check_file_name ( filename : & str ) -> Result < String , String > {
154
+ fn validate_file_name ( filename : & str ) -> Result < String , String > {
155
155
// we can use safely `unwrap` because the os type was checked before parsing the cli arguments
156
156
let os_type = os_specifics:: get_os ( ) . unwrap ( ) ;
157
157
match filename_handling:: validate_filename ( & os_type, filename) {
You can’t perform that action at this time.
0 commit comments