diff options
author | Daniel Silverstone <dsilvers@digital-scurf.org> | 2019-09-26 11:53:32 +0200 |
---|---|---|
committer | Neal H. Walfield <neal@pep.foundation> | 2019-09-27 22:12:11 +0200 |
commit | 424ce126a56660168f8284fa34ae80cb93d74289 (patch) | |
tree | 2c0440c1f3b0d557def5e1a496ee4ede22045a9b /openpgp/src/serialize/partial_body.rs | |
parent | a69ec9f9c5097bb8acd1a4fe2144328c9dc4ade7 (diff) |
linting: Clear up bare trait object warnings
Newer Rust compilers requre `dyn` marking trait objects.
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
Diffstat (limited to 'openpgp/src/serialize/partial_body.rs')
-rw-r--r-- | openpgp/src/serialize/partial_body.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/openpgp/src/serialize/partial_body.rs b/openpgp/src/serialize/partial_body.rs index 72f188f9..9a44a562 100644 --- a/openpgp/src/serialize/partial_body.rs +++ b/openpgp/src/serialize/partial_body.rs @@ -201,14 +201,14 @@ impl<'a, C: 'a> writer::Stackable<'a, C> for PartialBodyFilter<'a, C> { fn mount(&mut self, new: writer::BoxStack<'a, C>) { self.inner = Some(new); } - fn inner_mut(&mut self) -> Option<&mut writer::Stackable<'a, C>> { + fn inner_mut(&mut self) -> Option<&mut dyn writer::Stackable<'a, C>> { if let Some(ref mut i) = self.inner { Some(i) } else { None } } - fn inner_ref(&self) -> Option<&writer::Stackable<'a, C>> { + fn inner_ref(&self) -> Option<&dyn writer::Stackable<'a, C>> { if let Some(ref i) = self.inner { Some(i) } else { |