feat: add TryFrom String reference for http provider (#1084)
This commit is contained in:
parent
c8ce673e94
commit
df855b045e
|
@ -1298,6 +1298,14 @@ impl TryFrom<String> for Provider<HttpProvider> {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
impl<'a> TryFrom<&'a String> for Provider<HttpProvider> {
|
||||||
|
type Error = ParseError;
|
||||||
|
|
||||||
|
fn try_from(src: &'a String) -> Result<Self, Self::Error> {
|
||||||
|
Provider::try_from(src.as_str())
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/// A middleware supporting development-specific JSON RPC methods
|
/// A middleware supporting development-specific JSON RPC methods
|
||||||
///
|
///
|
||||||
/// # Example
|
/// # Example
|
||||||
|
|
Loading…
Reference in New Issue