Don't expose private sig parse method via try_from

This commit is contained in:
bad 2022-08-19 22:53:28 +02:00
parent 7548018491
commit c68389fa80
1 changed files with 0 additions and 7 deletions

View File

@ -12,13 +12,6 @@ pub struct Sig<'a> {
pub sig: Cow<'a, str>,
}
impl<'a> TryFrom<&'a str> for Sig<'a> {
type Error = ParsingError<'a>;
fn try_from(value: &'a str) -> ParsingResult<Self> {
Sig::parse(value)
}
}
// Neither the parse nor the serializa method is public since
// it doesn't really make sense to de/serialize the
// sig into the narinfo format outside of de/serializing a whole narinfo