Skip to content

Commit

Permalink
appease clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
quodlibetor committed Nov 13, 2020
1 parent 6e2604d commit 1bc13c4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/datetime.rs
Expand Up @@ -1422,12 +1422,13 @@ pub mod serde {
where
D: de::Deserializer<'de>,
{
Ok(try!(d.deserialize_i64(microSecondsTimestampVisitor)))
#[allow(deprecated)]
Ok(try!(d.deserialize_i64(MicroSecondsTimestampVisitor)))
}

struct microSecondsTimestampVisitor;
struct MicroSecondsTimestampVisitor;

impl<'de> de::Visitor<'de> for microSecondsTimestampVisitor {
impl<'de> de::Visitor<'de> for MicroSecondsTimestampVisitor {
type Value = DateTime<Utc>;

fn expecting(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
Expand Down
2 changes: 2 additions & 0 deletions src/lib.rs
Expand Up @@ -427,6 +427,8 @@
redundant_static_lifetimes,
// the field-init shorthand (which this lint recommends) was stabilized in rust 1.17.
redundant_field_names,
// #[non_exhaustive] was introduced in 1.40
manual_non_exhaustive,
// `matches!` was stabilized in 1.42
match_like_matches_macro,
// Changing trivially_copy_pass_by_ref would require an incompatible version
Expand Down

0 comments on commit 1bc13c4

Please sign in to comment.