Skip to content

Commit

Permalink
adds missing cfg attr to as_str
Browse files Browse the repository at this point in the history
  • Loading branch information
chanced committed Sep 6, 2023
1 parent 4cc9ea7 commit 99bc2df
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/number.rs
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,7 @@ impl Number {
}
}

#[cfg(feature = "arbitrary_precision")]
/// Returns the `&str` representation of the `Number`.
/// ```
/// # use serde_json::Number;
Expand Down

0 comments on commit 99bc2df

Please sign in to comment.