Skip to content

Commit

Permalink
Fix obvious typos
Browse files Browse the repository at this point in the history
  • Loading branch information
Dylan Sinnott committed Jul 26, 2023
1 parent 6d3897a commit a51d7a6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/files/trash.rs
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ impl Display for Error {
Error::Hub(err) => write!(f, "{}", err),
Error::GetFile(err) => write!(f, "Failed to get file: {}", err),
Error::Update(err) => write!(f, "Failed to trash file: {}", err),
Error::IsDirectory(f) => write!(
Error::IsDirectory(name) => write!(
f,
"'{}' is a directory, use --recursive to trash directories",
name
Expand Down
4 changes: 2 additions & 2 deletions src/files/untrash.rs
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ impl Display for Error {
Error::Hub(err) => write!(f, "{}", err),
Error::GetFile(err) => write!(f, "Failed to get file: {}", err),
Error::Update(err) => write!(f, "Failed to update file: {}", err),
Error::IsDirectory(f) => write!(
Error::IsDirectory(name) => write!(
f,
"'{}' is a directory, use --recursive to trash directories",
name
Expand Down Expand Up @@ -112,7 +112,7 @@ impl PatchFile {
}

fn err_if_directory(file: &google_drive3::api::File, config: &Config) -> Result<(), Error> {
if drive_file::is_directory(file) && !config.trash_directories {
if drive_file::is_directory(file) && !config.untrash_directories {
let name = file
.name
.as_ref()
Expand Down

0 comments on commit a51d7a6

Please sign in to comment.