tor-linkspec: impl AsRef<str> for PtTransportName
This commit is contained in:
parent
f64997e1e1
commit
e3d5f25750
|
@ -0,0 +1 @@
|
|||
ADDED: impl AsRef<str> for PtTransportName
|
|
@ -92,6 +92,12 @@ impl Display for PtTransportName {
|
|||
}
|
||||
}
|
||||
|
||||
impl AsRef<str> 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.
|
||||
|
|
Loading…
Reference in New Issue