Skip to content

Commit 9b20e91

Browse files
Revert bad format/clippy and add --all-targets
1 parent 3383392 commit 9b20e91

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

.travis.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ jobs:
1515
rust: stable
1616
script:
1717
- cargo fmt --verbose -- --check
18-
- cargo clippy --verbose
18+
- cargo clippy --verbose --all-targets
19+
1920
allow_failures:
2021
- rust: nightly
2122
- rust: beta

src/load_file.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ pub struct Field {
1515
}
1616

1717
impl Default for Field {
18-
fn default() -> Self { Self {
18+
fn default() -> Self {
19+
Self {
1920
address_mode: AddressMode::Immediate,
2021
value: Default::default(),
2122
}

src/parser/grammar.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ pub fn parse(rule: Rule, input: &str) -> Result<Pairs<Rule>, Error<Rule>> {
99
}
1010

1111
#[cfg(test)]
12-
// #[allow(clippy::cognitive_complexity)]
12+
#[allow(clippy::cognitive_complexity)]
1313
mod tests {
1414
use pest::{consumes_to, parses_to};
1515

0 commit comments

Comments
 (0)