diff --git a/crates/tor-linkspec/semver.md b/crates/tor-linkspec/semver.md new file mode 100644 index 000000000..a877cd46a --- /dev/null +++ b/crates/tor-linkspec/semver.md @@ -0,0 +1 @@ +ADDED: impl AsRef for PtTransportName diff --git a/crates/tor-linkspec/src/transport.rs b/crates/tor-linkspec/src/transport.rs index a16e4340b..e020cf132 100644 --- a/crates/tor-linkspec/src/transport.rs +++ b/crates/tor-linkspec/src/transport.rs @@ -92,6 +92,12 @@ impl Display for PtTransportName { } } +impl AsRef for PtTransportName { + fn as_ref(&self) -> &str { + &self.0 + } +} + /// These identifiers are used to indicate the built-in transport. /// /// When outputting string representations, the first (`"-"`) is used.