File tree Expand file tree Collapse file tree 6 files changed +6
-8
lines changed Expand file tree Collapse file tree 6 files changed +6
-8
lines changed Original file line number Diff line number Diff line change 77
77
- name : Install Rust
78
78
run : |
79
79
rustup set profile minimal
80
- # Pin to older version until a clippy regression is fixed
81
- rustup update 1.54.0
82
- rustup default 1.54.0
80
+ rustup update 1.56.0
81
+ rustup default 1.56.0
83
82
84
83
- run : rustup component add rustfmt
85
84
- run : rustup component add clippy
Original file line number Diff line number Diff line change @@ -5,8 +5,7 @@ version = "0.2.2"
5
5
license = " MIT OR Apache-2.0"
6
6
repository = " https://github.com/rust-lang/crates.io"
7
7
description = " Backend of crates.io"
8
- edition = " 2018"
9
- resolver = " 2"
8
+ edition = " 2021"
10
9
default-run = " server"
11
10
12
11
[workspace ]
Original file line number Diff line number Diff line change 1
- VERSION=1.54 .0
1
+ VERSION=1.56 .0
Original file line number Diff line number Diff line change @@ -75,6 +75,7 @@ pub fn publish(req: &mut dyn RequestExt) -> EndpointResult {
75
75
// Create a transaction on the database, if there are no errors,
76
76
// commit the transactions to record a new or updated crate.
77
77
conn. transaction ( || {
78
+ let _ = & new_crate;
78
79
let name = new_crate. name ;
79
80
let vers = & * new_crate. vers ;
80
81
let links = new_crate. links ;
Original file line number Diff line number Diff line change @@ -326,6 +326,7 @@ fn replay_http(
326
326
}
327
327
328
328
async {
329
+ let _ = & exchange;
329
330
assert_eq ! (
330
331
to_bytes( req. into_body( ) ) . await . unwrap( ) ,
331
332
base64:: decode( & exchange. request. body) . unwrap( )
Original file line number Diff line number Diff line change @@ -136,8 +136,6 @@ impl fmt::Display for ServiceUnavailable {
136
136
137
137
impl AppError for TooManyRequests {
138
138
fn response ( & self ) -> Option < AppResponse > {
139
- use std:: convert:: TryInto ;
140
-
141
139
const HTTP_DATE_FORMAT : & str = "%a, %d %b %Y %H:%M:%S GMT" ;
142
140
let retry_after = self . retry_after . format ( HTTP_DATE_FORMAT ) ;
143
141
You can’t perform that action at this time.
0 commit comments