From bcc57036a599b522c1283d23979cae060b87c822 Mon Sep 17 00:00:00 2001 From: Antonio Scandurra Date: Tue, 1 Feb 2022 16:59:03 +0100 Subject: [PATCH] Fix warnings in `language::FakeFile` Co-Authored-By: Nathan Sobo --- crates/language/src/buffer.rs | 18 ++++-------------- 1 file changed, 4 insertions(+), 14 deletions(-) diff --git a/crates/language/src/buffer.rs b/crates/language/src/buffer.rs index 5b66d4c8e8..f431da1476 100644 --- a/crates/language/src/buffer.rs +++ b/crates/language/src/buffer.rs @@ -256,17 +256,13 @@ impl File for FakeFile { cx.spawn(|_| async move { Ok((Default::default(), SystemTime::UNIX_EPOCH)) }) } - fn format_remote( - &self, - buffer_id: u64, - cx: &mut MutableAppContext, - ) -> Option>> { + fn format_remote(&self, _: u64, _: &mut MutableAppContext) -> Option>> { None } - fn buffer_updated(&self, _: u64, operation: Operation, cx: &mut MutableAppContext) {} + fn buffer_updated(&self, _: u64, _: Operation, _: &mut MutableAppContext) {} - fn buffer_removed(&self, _: u64, cx: &mut MutableAppContext) {} + fn buffer_removed(&self, _: u64, _: &mut MutableAppContext) {} fn as_any(&self) -> &dyn Any { self @@ -287,13 +283,7 @@ impl LocalFile for FakeFile { cx.background().spawn(async move { Ok(Default::default()) }) } - fn buffer_reloaded( - &self, - buffer_id: u64, - version: &clock::Global, - mtime: SystemTime, - cx: &mut MutableAppContext, - ) { + fn buffer_reloaded(&self, _: u64, _: &clock::Global, _: SystemTime, _: &mut MutableAppContext) { } }