summaryrefslogtreecommitdiffstats
path: root/sq
diff options
context:
space:
mode:
authorNora Widdecke <nora@sequoia-pgp.org>2021-04-07 18:45:55 +0200
committerNora Widdecke <nora@sequoia-pgp.org>2021-04-09 13:13:59 +0200
commit76f2e0ed8e30a0d1cde749f3444bd8a4c81bea87 (patch)
tree0085cfecde9d35b15c98fc8650734ecf5d61358f /sq
parentbaecfecbf953aa9e40f16084b927f35b69efc8f0 (diff)
Lint: Remove redundant returns.
- https://rust-lang.github.io/rust-clippy/master/index.html#needless_return
Diffstat (limited to 'sq')
-rw-r--r--sq/src/commands/decrypt.rs2
-rw-r--r--sq/src/sq.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/sq/src/commands/decrypt.rs b/sq/src/commands/decrypt.rs
index bab4f7c9..adf66e44 100644
--- a/sq/src/commands/decrypt.rs
+++ b/sq/src/commands/decrypt.rs
@@ -296,7 +296,7 @@ pub fn decrypt(config: Config,
dumper.flush(&mut io::stderr())?;
}
helper.vhelper.print_status();
- return Ok(());
+ Ok(())
}
pub fn decrypt_unwrap(config: Config,
diff --git a/sq/src/sq.rs b/sq/src/sq.rs
index eb67c812..d91534f3 100644
--- a/sq/src/sq.rs
+++ b/sq/src/sq.rs
@@ -688,7 +688,7 @@ fn main() -> Result<()> {
_ => unreachable!(),
}
- return Ok(())
+ Ok(())
}
/// Parses the given string depicting a ISO 8601 timestamp.