Skip to content

Commit

Permalink
Allow Clippy lint: cyclomatic complexity
Browse files Browse the repository at this point in the history
Honestly this function is pretty clear, breaking it up makes it seem worse.
  • Loading branch information
quodlibetor committed Jul 9, 2017
1 parent 3305047 commit 4c18d70
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/naive/time.rs
Original file line number Diff line number Diff line change
Expand Up @@ -518,6 +518,7 @@ impl NaiveTime {
/// (from_hms(20, 4, 5), -86400));
/// # }
/// ~~~~
#[cfg_attr(feature = "cargo-clippy", allow(cyclomatic_complexity))]
pub fn overflowing_add_signed(&self, mut rhs: OldDuration) -> (NaiveTime, i64) {
let mut secs = self.secs;
let mut frac = self.frac;
Expand Down

0 comments on commit 4c18d70

Please sign in to comment.