summaryrefslogtreecommitdiffstats
path: root/sq/src/commands/inspect.rs
diff options
context:
space:
mode:
Diffstat (limited to 'sq/src/commands/inspect.rs')
-rw-r--r--sq/src/commands/inspect.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/sq/src/commands/inspect.rs b/sq/src/commands/inspect.rs
index 7d136ab0..2d2037a9 100644
--- a/sq/src/commands/inspect.rs
+++ b/sq/src/commands/inspect.rs
@@ -46,7 +46,7 @@ pub fn inspect(m: &clap::ArgMatches, policy: &dyn Policy, output: &mut dyn io::W
type_called = true;
}
let pp = openpgp::PacketPile::from(
- ::std::mem::replace(&mut packets, Vec::new()));
+ std::mem::take(&mut packets));
let cert = openpgp::Cert::try_from(pp)?;
inspect_cert(policy, output, &cert,
print_certifications)?;