Allow Clippy lint: cyclomatic complexity

Honestly this function is pretty clear, breaking it up makes it seem worse.
This commit is contained in:
Brandon W Maister 2017-06-24 12:42:59 -05:00
parent 330504792b
commit 4c18d701ca
1 changed files with 1 additions and 0 deletions

View File

@ -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;