clippy fixes for focus change
This commit is contained in:
@@ -1711,7 +1711,7 @@ impl Server {
|
|||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
pub(crate) async fn store(&self) -> StoreGuard {
|
pub(crate) async fn store(&self) -> StoreGuard<'_> {
|
||||||
#[cfg(test)]
|
#[cfg(test)]
|
||||||
tokio::task::yield_now().await;
|
tokio::task::yield_now().await;
|
||||||
let guard = self.store.lock().await;
|
let guard = self.store.lock().await;
|
||||||
|
|||||||
@@ -442,12 +442,11 @@ impl Buffer {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fn build(buffer: TextBuffer, file: Option<Arc<dyn File>>) -> Self {
|
fn build(buffer: TextBuffer, file: Option<Arc<dyn File>>) -> Self {
|
||||||
let saved_mtime;
|
let saved_mtime = if let Some(file) = file.as_ref() {
|
||||||
if let Some(file) = file.as_ref() {
|
file.mtime()
|
||||||
saved_mtime = file.mtime();
|
|
||||||
} else {
|
} else {
|
||||||
saved_mtime = UNIX_EPOCH;
|
UNIX_EPOCH
|
||||||
}
|
};
|
||||||
|
|
||||||
Self {
|
Self {
|
||||||
saved_mtime,
|
saved_mtime,
|
||||||
|
|||||||
@@ -703,9 +703,9 @@ impl From<Box<dyn ItemHandle>> for AnyViewHandle {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
impl Into<AnyViewHandle> for &Box<dyn ItemHandle> {
|
impl From<&Box<dyn ItemHandle>> for AnyViewHandle {
|
||||||
fn into(self) -> AnyViewHandle {
|
fn from(val: &Box<dyn ItemHandle>) -> Self {
|
||||||
self.to_any()
|
val.to_any()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user