diff options
| author | Xe Iaso <me@xeiaso.net> | 2023-08-21 21:24:19 -0400 |
|---|---|---|
| committer | Xe Iaso <me@xeiaso.net> | 2023-08-21 21:24:19 -0400 |
| commit | ad1bc3c50ab5b0ca4acab5a22a71698128a0c879 (patch) | |
| tree | efc9f8dfdf9e2240f29df9f58d29f7989e791a6c /lib/jsonfeed/src/lib.rs | |
| parent | f670dafb8a89d8a1294ceab10318454e394c1cec (diff) | |
| download | xesite-ad1bc3c50ab5b0ca4acab5a22a71698128a0c879.tar.xz xesite-ad1bc3c50ab5b0ca4acab5a22a71698128a0c879.zip | |
lib/jsonfeed: clippy fixes
Signed-off-by: Xe Iaso <me@xeiaso.net>
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)?) } |
