Skip to content
This repository was archived by the owner on Mar 27, 2024. It is now read-only.

Commit 46ff65a

Browse files
committed
crate-wide allow for the clippy 'unreadable_literal' lint
1 parent 0c29aed commit 46ff65a

6 files changed

+8
-8
lines changed

.travis.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
- cargo build --verbose
1212
- cargo test --verbose
1313
- cargo fmt --all -- --check
14-
- cargo +stable clippy --all-targets --all-features -- -D warnings
14+
- cargo +stable clippy --all-targets --all-features -- -A clippy::unreadable_literal -D warnings
1515
- stage: test
1616
os: osx
1717
before_script:
@@ -22,7 +22,7 @@ jobs:
2222
- cargo build --verbose
2323
- cargo test --verbose
2424
- cargo fmt --all -- --check
25-
- cargo +stable clippy --all-targets --all-features -- -D warnings
25+
- cargo +stable clippy --all-targets --all-features -- -A clippy::unreadable_literal -D warnings
2626

2727
# deploy crates and documentation conditionally
2828
# deploy on cargo if tagged master release

examples/dimension_expander.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ impl Plugin for DimensionExpander {
111111
Info {
112112
name: "Dimension Expander".to_string(),
113113
vendor: "overdrivenpotato".to_string(),
114-
unique_id: 243_723_071,
114+
unique_id: 243723071,
115115
version: 1,
116116
inputs: 2,
117117
outputs: 2,

examples/fwd_midi.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ impl Plugin for MyPlugin {
3232
fn get_info(&self) -> Info {
3333
Info {
3434
name: "fwd_midi".to_string(),
35-
unique_id: 7_357_001, // Used by hosts to differentiate between plugins.
35+
unique_id: 7357001, // Used by hosts to differentiate between plugins.
3636
..Default::default()
3737
}
3838
}

examples/gain_effect.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ impl Plugin for GainEffect {
6060
Info {
6161
name: "Gain Effect in Rust".to_string(),
6262
vendor: "Rust DSP".to_string(),
63-
unique_id: 243_723_072,
63+
unique_id: 243723072,
6464
version: 1,
6565
inputs: 2,
6666
outputs: 2,

examples/ladder_filter.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ impl LadderParameters {
136136
}
137137
// returns the value used to set cutoff. for get_parameter function
138138
pub fn get_cutoff(&self) -> f32 {
139-
1. + 0.170_129_75 * (0.00005 * self.cutoff.get()).ln()
139+
1. + 0.17012975 * (0.00005 * self.cutoff.get()).ln()
140140
}
141141
pub fn set_poles(&self, value: f32) {
142142
self.pole_value.set(value);
@@ -190,7 +190,7 @@ impl PluginParameters for LadderParameters {
190190
1 => format!("{:.3}", self.res.get()),
191191
2 => format!("{}", self.poles.load(Ordering::Relaxed) + 1),
192192
3 => format!("{:.3}", self.drive.get()),
193-
_ => "".to_string(),
193+
_ => format!(""),
194194
}
195195
}
196196
}

examples/transfer_and_smooth.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ impl Plugin for MyPlugin {
7575

7676
name: "transfer_and_smooth".to_string(),
7777
vendor: "Loonies".to_string(),
78-
unique_id: 0x0050_0007,
78+
unique_id: 0x00500007,
7979
version: 100,
8080

8181
..Info::default()

0 commit comments

Comments
 (0)