From c68389fa8066566d18c82295dec275e3920e0ead Mon Sep 17 00:00:00 2001 From: bad Date: Fri, 19 Aug 2022 22:53:28 +0200 Subject: [PATCH] Don't expose private sig parse method via try_from --- src/sig.rs | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/sig.rs b/src/sig.rs index 8e9f992..4b6e4fe 100644 --- a/src/sig.rs +++ b/src/sig.rs @@ -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 { - 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