Skip to content

Commit 198811f

Browse files
jyn514Joshua Nelson
authored andcommitted
Deny warnings on CI
With apologies to @zeegomo for originally requesting the change.
1 parent ed38341 commit 198811f

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
run: cargo build --locked
3232

3333
- name: Run clippy
34-
run: cargo clippy -- -D clippy::all -D unused-imports
34+
run: cargo clippy -- -D warnings
3535

3636
- name: Prepare the test environment
3737
run: |

src/web/mod.rs

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -209,10 +209,6 @@ impl MatchVersion {
209209
MatchVersion::None => None,
210210
}
211211
}
212-
213-
fn strip_id(self) -> Option<String> {
214-
self.into_option().map(|(version, _id)| version)
215-
}
216212
}
217213

218214
/// Checks the database for crate releases that match the given name and version.
@@ -522,6 +518,12 @@ mod test {
522518
use html5ever::tendril::TendrilSink;
523519
use crate::web::{match_version, MatchVersion};
524520

521+
impl MatchVersion {
522+
fn strip_id(self) -> Option<String> {
523+
self.into_option().map(|(version, _id)| version)
524+
}
525+
}
526+
525527
const DEFAULT_ID: i32 = 0;
526528

527529
fn release(version: &str, db: &TestDatabase) -> i32 {

0 commit comments

Comments
 (0)