aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Jackson <ijackson@chiark.greenend.org.uk>2024-04-24 19:03:47 +0100
committerIan Jackson <ijackson@chiark.greenend.org.uk>2024-04-25 15:22:32 +0100
commit2dd8db9c53ddfe9fca8dbfc2bebc75fe2c1be691 (patch)
treed31021d97e89e611d3ebf8cec1c8fdf055de350e
parent2308e88a9a9e308f28b9a60d9efed6ad3cd603fb (diff)
downloadarti-2dd8db9c53ddfe9fca8dbfc2bebc75fe2c1be691.tar.gz
arti-2dd8db9c53ddfe9fca8dbfc2bebc75fe2c1be691.zip
Delete duplicate KeySpecifierComponentPrettyHelper
This had somehow got duplicated; remove the one in derive.rs.
-rw-r--r--crates/tor-keymgr/src/key_specifier/derive.rs9
1 files changed, 0 insertions, 9 deletions
diff --git a/crates/tor-keymgr/src/key_specifier/derive.rs b/crates/tor-keymgr/src/key_specifier/derive.rs
index d7c495b9c..f14ec8d5d 100644
--- a/crates/tor-keymgr/src/key_specifier/derive.rs
+++ b/crates/tor-keymgr/src/key_specifier/derive.rs
@@ -267,15 +267,6 @@ pub fn parse_key_path(
Ok(())
}
-/// Wrapper for `KeySpecifierComponent` that `Displays` via `fmt_pretty`
-struct KeySpecifierComponentPrettyHelper<'c>(&'c dyn KeySpecifierComponent);
-
-impl Display for KeySpecifierComponentPrettyHelper<'_> {
- fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
- KeySpecifierComponent::fmt_pretty(self.0, f)
- }
-}
-
/// Build a `KeyPathInfo` given the information about a key specifier
///
/// Calling pattern, to minimise macro-generated machine code,