style: Remove unneeded parens
This commit is contained in:
parent
5bc1ba910f
commit
057224f9a2
1 changed files with 1 additions and 1 deletions
|
@ -653,7 +653,7 @@ pub(crate) fn is_dir(filename: &str) -> bool {
|
||||||
pub(crate) fn path_to_string<T: AsRef<Path>>(path: T) -> Box<str> {
|
pub(crate) fn path_to_string<T: AsRef<Path>>(path: T) -> Box<str> {
|
||||||
let mut maybe_original = None;
|
let mut maybe_original = None;
|
||||||
if let Some(original) = path.as_ref().to_str() {
|
if let Some(original) = path.as_ref().to_str() {
|
||||||
if (original.len() == 0) {
|
if original.len() == 0 {
|
||||||
return String::new().into_boxed_str();
|
return String::new().into_boxed_str();
|
||||||
}
|
}
|
||||||
if (MAIN_SEPARATOR == '/' || !original[1..].contains(MAIN_SEPARATOR))
|
if (MAIN_SEPARATOR == '/' || !original[1..].contains(MAIN_SEPARATOR))
|
||||||
|
|
Loading…
Add table
Reference in a new issue