run clippy in CI

This commit is contained in:
Abraham Toriz 2021-08-02 19:13:11 -05:00
parent 5186b7c159
commit b8cfe1ff21
No known key found for this signature in database
GPG Key ID: D5B4A746DB5DD42A
3 changed files with 3 additions and 0 deletions

View File

@ -3,4 +3,5 @@ image: "rust:latest"
test:cargo:
script:
- rustc --version && cargo --version # Print version info for debugging
- cargo clippy
- cargo test

View File

@ -38,6 +38,7 @@ impl FromStr for Sheet {
}
}
#[allow(clippy::too_many_arguments)]
pub fn entries_for_display<D, O, E>(
start: Option<DateTime<Utc>>, end: Option<DateTime<Utc>>,
sheet: Option<Sheet>, db: &mut D, out: &mut O, err: &mut E,

View File

@ -9,6 +9,7 @@ mod strings;
use strings::{NUMBER_VALUES, HUMAN_REGEX, DATETIME_REGEX, HOUR_REGEX};
#[allow(clippy::too_many_arguments)]
fn date_from_parts<T: TimeZone>(
timezone: T, input: &str, year: i32, month: u32, day: u32, hour: u32,
minute: u32, second: u32