mirror of
https://github.com/zed-industries/zed.git
synced 2025-02-03 17:44:30 +00:00
clippy fixes for focus change
This commit is contained in:
parent
8ba2f77148
commit
9aa3f2d777
3 changed files with 8 additions and 9 deletions
|
@ -1711,7 +1711,7 @@ impl Server {
|
|||
Ok(())
|
||||
}
|
||||
|
||||
pub(crate) async fn store(&self) -> StoreGuard {
|
||||
pub(crate) async fn store(&self) -> StoreGuard<'_> {
|
||||
#[cfg(test)]
|
||||
tokio::task::yield_now().await;
|
||||
let guard = self.store.lock().await;
|
||||
|
|
|
@ -442,12 +442,11 @@ impl Buffer {
|
|||
}
|
||||
|
||||
fn build(buffer: TextBuffer, file: Option<Arc<dyn File>>) -> Self {
|
||||
let saved_mtime;
|
||||
if let Some(file) = file.as_ref() {
|
||||
saved_mtime = file.mtime();
|
||||
let saved_mtime = if let Some(file) = file.as_ref() {
|
||||
file.mtime()
|
||||
} else {
|
||||
saved_mtime = UNIX_EPOCH;
|
||||
}
|
||||
UNIX_EPOCH
|
||||
};
|
||||
|
||||
Self {
|
||||
saved_mtime,
|
||||
|
|
|
@ -703,9 +703,9 @@ impl From<Box<dyn ItemHandle>> for AnyViewHandle {
|
|||
}
|
||||
}
|
||||
|
||||
impl Into<AnyViewHandle> for &Box<dyn ItemHandle> {
|
||||
fn into(self) -> AnyViewHandle {
|
||||
self.to_any()
|
||||
impl From<&Box<dyn ItemHandle>> for AnyViewHandle {
|
||||
fn from(val: &Box<dyn ItemHandle>) -> Self {
|
||||
val.to_any()
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue