Skip to content

Commit

Permalink
fix: serde flag
Browse files Browse the repository at this point in the history
  • Loading branch information
grumbach committed Mar 2, 2023
1 parent f20e23c commit d309251
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
// permissions and limitations relating to use of the SAFE Network Software.

use std::fmt;

#[cfg(feature = "serde")]
use std::str::FromStr;

mod amount_secrets;
Expand Down Expand Up @@ -86,6 +88,7 @@ impl Hash {
}
}

#[cfg(feature = "serde")]
impl FromStr for Hash {
type Err = Error;

Expand Down

0 comments on commit d309251

Please sign in to comment.