run clippy in CI
This commit is contained in:
parent
5186b7c159
commit
b8cfe1ff21
|
@ -3,4 +3,5 @@ image: "rust:latest"
|
|||
test:cargo:
|
||||
script:
|
||||
- rustc --version && cargo --version # Print version info for debugging
|
||||
- cargo clippy
|
||||
- cargo test
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue