clippy fixes for focus change

This commit is contained in:
K Simmons 2022-08-10 16:49:17 -07:00
parent 8ba2f77148
commit 9aa3f2d777
3 changed files with 8 additions and 9 deletions

View file

@ -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,