Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

fmt

Mikayla Makie3f9a01f6b22
diff --git a/crates/project_panel/src/file_associations.rs b/crates/project_panel/src/file_associations.rs
index e692031704e..3aaa1689e06 100644
--- a/crates/project_panel/src/file_associations.rs
+++ b/crates/project_panel/src/file_associations.rs
@@ -44,14 +44,14 @@ impl FileAssociations {
let this = cx.has_global::<Self>().then(|| cx.global::<Self>())?;
iife!({
- let suffix =
- path.file_name()
- .and_then(|os_str| os_str.to_str())
- .and_then(|file_name| {
- file_name
- .find('.')
- .and_then(|dot_index| file_name.get(dot_index + 1..))
- } )?;
+ let suffix = path
+ .file_name()
+ .and_then(|os_str| os_str.to_str())
+ .and_then(|file_name| {
+ file_name
+ .find('.')
+ .and_then(|dot_index| file_name.get(dot_index + 1..))
+ })?;
this.suffixes
.get(suffix)