diff --git a/crates/encodings/Cargo.toml b/crates/encodings/Cargo.toml index a81e28bf4832e03f1aee52b90143dc92f37595be..b7743d438d8cc2df31746292f0d6e9de2a91b794 100644 --- a/crates/encodings/Cargo.toml +++ b/crates/encodings/Cargo.toml @@ -5,7 +5,6 @@ publish.workspace = true edition.workspace = true [dependencies] -anyhow.workspace = true editor.workspace = true encoding_rs.workspace = true fuzzy.workspace = true diff --git a/crates/language/src/buffer.rs b/crates/language/src/buffer.rs index 5db1cc8e9d90a5ec8f057eb71d389709c52e74b1..e22f86be5be3714eb21b9dccf24c4890a8cf2158 100644 --- a/crates/language/src/buffer.rs +++ b/crates/language/src/buffer.rs @@ -420,8 +420,7 @@ pub trait LocalFile: File { fn load_bytes(&self, cx: &App) -> Task>>; /// Loads the file contents from disk, decoding them with the given encoding. - fn load_with_encoding(&self, cx: &App, encoding: &'static Encoding) - -> Task>; + fn load_with_encoding(&self, cx: &App, encoding: &'static Encoding) -> Task>; } /// The auto-indent behavior associated with an editing operation. diff --git a/crates/worktree/src/worktree.rs b/crates/worktree/src/worktree.rs index 42b086adcbf5897462c5137887162c36d7701601..a20f4035ec63cc420ce998a25fe1a0ac0d4fb563 100644 --- a/crates/worktree/src/worktree.rs +++ b/crates/worktree/src/worktree.rs @@ -3129,11 +3129,7 @@ impl language::LocalFile for File { cx.background_spawn(async move { fs.load_bytes(&abs_path).await }) } - fn load_with_encoding( - &self, - cx: &App, - encoding: &'static Encoding, - ) -> Task> { + fn load_with_encoding(&self, cx: &App, encoding: &'static Encoding) -> Task> { let worktree = self.worktree.read(cx).as_local().unwrap(); let path = worktree.absolutize(&self.path); let fs = worktree.fs.clone();