From da300fd55340ca1c65914744fa30c2b3b02e485f Mon Sep 17 00:00:00 2001 From: "Felix S. Klock II" Date: Wed, 13 Feb 2019 22:31:33 +0100 Subject: rustfmt --- crates/ra_vfs/src/lib.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'crates/ra_vfs/src') diff --git a/crates/ra_vfs/src/lib.rs b/crates/ra_vfs/src/lib.rs index 2c3c35f28..d589a254b 100644 --- a/crates/ra_vfs/src/lib.rs +++ b/crates/ra_vfs/src/lib.rs @@ -72,12 +72,12 @@ impl RootConfig { if self.excluded_dirs.iter().any(|it| path.starts_with(it)) { return None; } - let rel_path = path.strip_prefix(&self.root) + let rel_path = path + .strip_prefix(&self.root) .or_else(|err_payload| { self.canonical_root .as_ref() - .map_or(Err(err_payload), - |canonical_root| path.strip_prefix(canonical_root)) + .map_or(Err(err_payload), |canonical_root| path.strip_prefix(canonical_root)) }) .ok()?; let rel_path = RelativePathBuf::from_path(rel_path).ok()?; -- cgit v1.2.3