mirror of
https://github.com/sharkdp/bat
synced 2026-08-04 19:01:44 +00:00
Do not take optional as argument
This commit is contained in:
+2
-5
@@ -66,13 +66,10 @@ impl<'a> OrdinaryFile<'a> {
|
||||
}
|
||||
}
|
||||
|
||||
pub fn from_path_with_name(
|
||||
path: &'a OsStr,
|
||||
user_provided_name: Option<&'a OsStr>,
|
||||
) -> OrdinaryFile<'a> {
|
||||
pub fn from_path_with_name(path: &'a OsStr, user_provided_name: &'a OsStr) -> OrdinaryFile<'a> {
|
||||
OrdinaryFile {
|
||||
path,
|
||||
user_provided_name,
|
||||
user_provided_name: Some(user_provided_name),
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user