Skip to content

Commit

Permalink
Address clippy lints
Browse files Browse the repository at this point in the history
  • Loading branch information
jhpratt committed Oct 13, 2023
1 parent 9564e59 commit 08ed41d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions time/src/parsing/iso8601.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ impl<const CONFIG: EncodedConfig> Iso8601<CONFIG> {
// Basic: [year]["W"][week][dayk]
// Extended: [year]["-"]["W"][week]["-"][dayk]
/// Parse a date in the basic or extended format. Reduced precision is permitted.
#[allow(clippy::needless_pass_by_ref_mut)] // rust-lang/rust-clippy#11620
pub(crate) fn parse_date<'a>(
parsed: &'a mut Parsed,
extended_kind: &'a mut ExtendedKind,
Expand Down
2 changes: 1 addition & 1 deletion time/src/time.rs
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ impl PartialEq for Time {

impl PartialOrd for Time {
fn partial_cmp(&self, other: &Self) -> Option<core::cmp::Ordering> {
self.as_u64().partial_cmp(&other.as_u64())
Some(self.cmp(other))
}
}

Expand Down

0 comments on commit 08ed41d

Please sign in to comment.