diff options
Diffstat (limited to 'lib/jsonfeed/src/lib.rs')
| -rw-r--r-- | lib/jsonfeed/src/lib.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/jsonfeed/src/lib.rs b/lib/jsonfeed/src/lib.rs index 812083e..d501161 100644 --- a/lib/jsonfeed/src/lib.rs +++ b/lib/jsonfeed/src/lib.rs @@ -39,6 +39,8 @@ //! } //! ``` +#![allow(clippy::new_without_default)] + extern crate serde; #[macro_use] extern crate error_chain; @@ -82,7 +84,7 @@ pub fn from_reader<R: ::std::io::Read>(r: R) -> Result<Feed> { } /// Deserialize a Feed object from bytes of JSON text -pub fn from_slice<'a>(v: &'a [u8]) -> Result<Feed> { +pub fn from_slice(v: &[u8]) -> Result<Feed> { Ok(serde_json::from_slice(v)?) } |
