Skip to content

Commit

Permalink
Removed unused error variant
Browse files Browse the repository at this point in the history
  • Loading branch information
mtkennerly committed Nov 7, 2024
1 parent 679e632 commit c8f04ac
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion src/lang.rs
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,6 @@ impl Translator {
Error::CannotPrepareBackupTarget { path } => self.cannot_prepare_backup_target(path),
Error::RestorationSourceInvalid { path } => self.restoration_source_is_invalid(path),
Error::RegistryIssue => self.registry_issue(),
Error::UnableToBrowseFileSystem => self.unable_to_browse_file_system(),
Error::UnableToOpenDir(path) => self.unable_to_open_dir(path),
Error::UnableToOpenUrl(url) => self.unable_to_open_url(url),
Error::RcloneUnavailable => self.rclone_unavailable(),
Expand Down Expand Up @@ -848,6 +847,7 @@ impl Translator {
translate("registry-issue")
}

#[allow(unused)]
pub fn unable_to_browse_file_system(&self) -> String {
translate("unable-to-browse-file-system")
}
Expand Down
1 change: 0 additions & 1 deletion src/prelude.rs
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,6 @@ pub enum Error {
},
#[allow(dead_code)]
RegistryIssue,
UnableToBrowseFileSystem,
UnableToOpenDir(StrictPath),
UnableToOpenUrl(String),
RcloneUnavailable,
Expand Down

0 comments on commit c8f04ac

Please sign in to comment.