diff options
Diffstat (limited to 'src/actions/undo.rs')
-rw-r--r-- | src/actions/undo.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/actions/undo.rs b/src/actions/undo.rs index 2fa2c83..3e003a6 100644 --- a/src/actions/undo.rs +++ b/src/actions/undo.rs @@ -53,7 +53,7 @@ fn get_most_recent_backup() -> KhResult<PathBuf> { .filter_map(|result| result.ok()) .map(|dir_entry| dir_entry.path()) .max() - .ok_or("there are no backups, nothing to undo!".into()) + .ok_or_else(|| "there are no backups, nothing to undo!".into()) } fn ask_overwrite(path: &Path) -> bool { |