Selaa lähdekoodia

Remove TryFrom from keys impl

develop
Silvestr Predko 2 vuotta sitten
vanhempi
commit
6564379550
1 muutettua tiedostoa jossa 0 lisäystä ja 8 poistoa
  1. 0
    8
      near-client/src/types/crypto.rs

+ 0
- 8
near-client/src/types/crypto.rs Näytä tiedosto

@@ -244,14 +244,6 @@ impl Keypair {
244 244
 
245 245
 macro_rules! util_impl {
246 246
     ($key_type: ty) => {
247
-        impl TryFrom<&[u8]> for $key_type {
248
-            type Error = Error;
249
-
250
-            fn try_from(data: &[u8]) -> Result<Self> {
251
-                Self::from_bytes(data)
252
-            }
253
-        }
254
-
255 247
         impl From<$key_type> for String {
256 248
             fn from(key: $key_type) -> Self {
257 249
                 Key::to_string(&key)

Loading…
Peruuta
Tallenna