diff options
author | Neal H. Walfield <neal@pep.foundation> | 2019-05-07 11:12:21 +0200 |
---|---|---|
committer | Neal H. Walfield <neal@pep.foundation> | 2019-05-07 12:18:42 +0200 |
commit | 381ecfedce31d38d6bd447d85a05f7d9a458c38b (patch) | |
tree | fc9b245eb8a46bee88e9bdaac00c7efd91d70cfc /tool/src/commands/key.rs | |
parent | 4ecdcafbb1a46a39e7fe54c2802c421c2160884d (diff) |
openpgp: Rename TPKBuilder::default to TPKBuilder::new
- One would think that TPKBuilder::default would return something
filled with useful defaults, but it just returns a nearly empty
builder. Rename it to TPKBuilder::new, which is less misleading.
Diffstat (limited to 'tool/src/commands/key.rs')
-rw-r--r-- | tool/src/commands/key.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tool/src/commands/key.rs b/tool/src/commands/key.rs index fbbfcb5e..43dde438 100644 --- a/tool/src/commands/key.rs +++ b/tool/src/commands/key.rs @@ -9,7 +9,7 @@ use openpgp::serialize::Serialize; use ::create_or_stdout; pub fn generate(m: &ArgMatches, force: bool) -> failure::Fallible<()> { - let mut builder = TPKBuilder::default(); + let mut builder = TPKBuilder::new(); // User ID match m.value_of("userid") { |