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
R Aadarsh created
- Remove unused dependencies
crates/encodings/Cargo.toml | 1 -
crates/language/src/buffer.rs | 3 +--
crates/worktree/src/worktree.rs | 6 +-----
3 files changed, 2 insertions(+), 8 deletions(-)
@@ -5,7 +5,6 @@ publish.workspace = true
edition.workspace = true
[dependencies]
-anyhow.workspace = true
editor.workspace = true
encoding_rs.workspace = true
fuzzy.workspace = true
@@ -420,8 +420,7 @@ pub trait LocalFile: File {
fn load_bytes(&self, cx: &App) -> Task<Result<Vec<u8>>>;
/// Loads the file contents from disk, decoding them with the given encoding.
- fn load_with_encoding(&self, cx: &App, encoding: &'static Encoding)
- -> Task<Result<String>>;
+ fn load_with_encoding(&self, cx: &App, encoding: &'static Encoding) -> Task<Result<String>>;
}
/// The auto-indent behavior associated with an editing operation.
@@ -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<Result<String>> {
+ fn load_with_encoding(&self, cx: &App, encoding: &'static Encoding) -> Task<Result<String>> {
let worktree = self.worktree.read(cx).as_local().unwrap();
let path = worktree.absolutize(&self.path);
let fs = worktree.fs.clone();