chore: remove useless tuple param
This commit is contained in:
parent
fae0ce4539
commit
fae0a52a01
|
@ -260,7 +260,7 @@ fn main() -> Result<()> {
|
|||
ctx.add_signer(&key)
|
||||
.context("could not add signer")
|
||||
.unwrap(); // FIXME
|
||||
Some((ctx, key))
|
||||
Some(ctx)
|
||||
}
|
||||
None => None,
|
||||
};
|
||||
|
@ -307,7 +307,7 @@ fn main() -> Result<()> {
|
|||
|
||||
let mut header = header_lines.join("\n");
|
||||
|
||||
if let Some((ctx, _)) = &mut gpg {
|
||||
if let Some(ctx) = &mut gpg {
|
||||
let to_sign = format!("{header}\n{message}");
|
||||
let mut output = Vec::new();
|
||||
ctx.sign(SignMode::Detached, to_sign, &mut output)
|
||||
|
|
Loading…
Reference in New Issue