diff options
author | Ian Jackson <ijackson@chiark.greenend.org.uk> | 2022-03-02 15:37:11 +0000 |
---|---|---|
committer | Ian Jackson <ijackson@chiark.greenend.org.uk> | 2022-03-02 17:04:07 +0000 |
commit | d1e8aa1dbda0ea00b5458bbcb765bb7214f7ad95 (patch) | |
tree | 0337e0f7cf310f33a745aeef5a5d64e750b3bac9 | |
parent | 7a4369e240948cdc27c7ad03f40a42efbc52b95b (diff) | |
download | arti-d1e8aa1dbda0ea00b5458bbcb765bb7214f7ad95.tar.gz arti-d1e8aa1dbda0ea00b5458bbcb765bb7214f7ad95.zip |
tor-llcrypto: Replace a tiny bit of code duplication with a call
No functional change.
-rw-r--r-- | crates/tor-llcrypto/src/pk/rsa.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/tor-llcrypto/src/pk/rsa.rs b/crates/tor-llcrypto/src/pk/rsa.rs index 11ba87ca4..cf0e8454e 100644 --- a/crates/tor-llcrypto/src/pk/rsa.rs +++ b/crates/tor-llcrypto/src/pk/rsa.rs @@ -60,7 +60,7 @@ impl fmt::Display for RsaIdentity { } impl fmt::Debug for RsaIdentity { fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { - write!(f, "RsaIdentity {{ ${} }}", hex::encode(&self.id[..])) + write!(f, "RsaIdentity {{ {} }}", self) } } |