File tree Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change 31
31
run : cargo build --locked
32
32
33
33
- name : Run clippy
34
- run : cargo clippy -- -D clippy::all -D unused-imports
34
+ run : cargo clippy -- -D warnings
35
35
36
36
- name : Prepare the test environment
37
37
run : |
Original file line number Diff line number Diff line change @@ -209,10 +209,6 @@ impl MatchVersion {
209
209
MatchVersion :: None => None ,
210
210
}
211
211
}
212
-
213
- fn strip_id ( self ) -> Option < String > {
214
- self . into_option ( ) . map ( |( version, _id) | version)
215
- }
216
212
}
217
213
218
214
/// Checks the database for crate releases that match the given name and version.
@@ -522,6 +518,12 @@ mod test {
522
518
use html5ever:: tendril:: TendrilSink ;
523
519
use crate :: web:: { match_version, MatchVersion } ;
524
520
521
+ impl MatchVersion {
522
+ fn strip_id ( self ) -> Option < String > {
523
+ self . into_option ( ) . map ( |( version, _id) | version)
524
+ }
525
+ }
526
+
525
527
const DEFAULT_ID : i32 = 0 ;
526
528
527
529
fn release ( version : & str , db : & TestDatabase ) -> i32 {
You can’t perform that action at this time.
0 commit comments