Created
May 26, 2019 11:59
-
-
Save graylikeme/348df4ff298d9bfc6339292dcb63f847 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fn parse<'de, T>(body: Bytes) -> Option<T> | |
where T: Deserialize<'de> | |
{ | |
serde_json::from_reader(body.into_buf()).unwrap_or_default() | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment