Skip to content

Commit

Permalink
Elide lifetimes
Browse files Browse the repository at this point in the history
  • Loading branch information
fasterthanlime committed Jul 31, 2024
1 parent d88fb1d commit 20b8ad3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1195,7 +1195,7 @@ pub fn from_slice(data: &[u8]) -> Result<JsonValue<'_>, MerdeJsonError> {
}

/// Deserialize an instance of type `T` from a string of JSON text.
pub fn from_str<'src>(s: &'src str) -> Result<JsonValue<'src>, MerdeJsonError> {
pub fn from_str(s: &str) -> Result<JsonValue<'_>, MerdeJsonError> {
from_slice(s.as_bytes())
}

Expand Down

0 comments on commit 20b8ad3

Please sign in to comment.