style: cargo fmt --all
This commit is contained in:
parent
74e76a94ca
commit
1b2c42b199
1 changed files with 4 additions and 3 deletions
|
@ -225,7 +225,8 @@ pub(crate) fn path_to_string<T: AsRef<Path>>(path: T) -> String {
|
||||||
&& !original.starts_with(['.', '.', MAIN_SEPARATOR])
|
&& !original.starts_with(['.', '.', MAIN_SEPARATOR])
|
||||||
&& !original.contains([MAIN_SEPARATOR, MAIN_SEPARATOR])
|
&& !original.contains([MAIN_SEPARATOR, MAIN_SEPARATOR])
|
||||||
&& !original.contains([MAIN_SEPARATOR, '.', MAIN_SEPARATOR])
|
&& !original.contains([MAIN_SEPARATOR, '.', MAIN_SEPARATOR])
|
||||||
&& !original.contains([MAIN_SEPARATOR, '.', '.', MAIN_SEPARATOR]){
|
&& !original.contains([MAIN_SEPARATOR, '.', '.', MAIN_SEPARATOR])
|
||||||
|
{
|
||||||
if original.starts_with(MAIN_SEPARATOR) {
|
if original.starts_with(MAIN_SEPARATOR) {
|
||||||
maybe_original = Some(&original[1..]);
|
maybe_original = Some(&original[1..]);
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Add table
Reference in a new issue