File tree Expand file tree Collapse file tree 9 files changed +13
-13
lines changed Expand file tree Collapse file tree 9 files changed +13
-13
lines changed Original file line number Diff line number Diff line change 11# renovate: datasource=github-tags depName=rust lookupName=rust-lang/rust
2- ARG RUST_VERSION=1.82 .0
2+ ARG RUST_VERSION=1.83 .0
33
44FROM rust:$RUST_VERSION
55
Original file line number Diff line number Diff line change 11[toolchain ]
2- channel = " 1.82 .0"
2+ channel = " 1.83 .0"
Original file line number Diff line number Diff line change @@ -173,12 +173,12 @@ async fn list_by_date(
173173
174174/// Seek-based pagination of versions by semver
175175///
176+ /// Unfortunately, Heroku Postgres has no support for the semver PG extension.
177+ /// Therefore, we need to perform both sorting and pagination manually on the server.
178+ ///
176179/// # Panics
177180///
178181/// This function will panic if `option` is built with `enable_pages` set to true.
179-
180- // Unfortunately, Heroku Postgres has no support for the semver PG extension.
181- // Therefore, we need to perform both sorting and pagination manually on the server.
182182async fn list_by_semver (
183183 crate_id : i32 ,
184184 options : Option < & PaginationOptions > ,
Original file line number Diff line number Diff line change @@ -214,7 +214,7 @@ struct NewTokenEmail<'a> {
214214 domain : & ' a str ,
215215}
216216
217- impl < ' a > crate :: email:: Email for NewTokenEmail < ' a > {
217+ impl crate :: email:: Email for NewTokenEmail < ' _ > {
218218 fn subject ( & self ) -> String {
219219 format ! ( "crates.io: New API token \" {}\" created" , self . token_name)
220220 }
Original file line number Diff line number Diff line change @@ -91,7 +91,7 @@ pub async fn authorize(
9191 // Make sure that the state we just got matches the session state that we
9292 // should have issued earlier.
9393 let session_state = session. remove ( "github_oauth_state" ) . map ( CsrfToken :: new) ;
94- if ! session_state. is_some_and ( |state| query. state . secret ( ) = = state. secret ( ) ) {
94+ if session_state. is_none_or ( |state| query. state . secret ( ) ! = state. secret ( ) ) {
9595 return Err ( bad_request ( "invalid state parameter" ) ) ;
9696 }
9797
Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ impl<'a> GaugeGuard<'a> {
5151 }
5252}
5353
54- impl < ' a > Drop for GaugeGuard < ' a > {
54+ impl Drop for GaugeGuard < ' _ > {
5555 fn drop ( & mut self ) {
5656 self . gauge . dec ( ) ;
5757 }
Original file line number Diff line number Diff line change @@ -116,10 +116,10 @@ impl CrateScope {
116116 return true ;
117117 }
118118
119- return match self . pattern . strip_suffix ( '*' ) {
119+ match self . pattern . strip_suffix ( '*' ) {
120120 Some ( prefix) => crate_name. starts_with ( prefix) ,
121121 None => crate_name == self . pattern ,
122- } ;
122+ }
123123 }
124124}
125125
Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ pub fn process_xff_headers(headers: &HeaderMap) -> Option<IpAddr> {
4646 } ;
4747
4848 let has_more_headers = xff_iter. next ( ) . is_some ( ) ;
49- return if has_more_headers {
49+ if has_more_headers {
5050 // This only happens for requests going directly to crates-io.herokuapp.com,
5151 // since AWS CloudFront automatically merges these headers into one.
5252 //
@@ -81,7 +81,7 @@ pub fn process_xff_headers(headers: &HeaderMap) -> Option<IpAddr> {
8181 . filter_map ( |r| r. ok ( ) )
8282 . filter ( |ip| !is_cloud_front_ip ( ip) )
8383 . next_back ( )
84- } ;
84+ }
8585}
8686
8787/// Parses the content of an `X-Forwarded-For` header into a
Original file line number Diff line number Diff line change @@ -137,7 +137,7 @@ struct ExpiryNotificationEmail<'a> {
137137 expiry_date : chrono:: DateTime < chrono:: Utc > ,
138138}
139139
140- impl < ' a > Email for ExpiryNotificationEmail < ' a > {
140+ impl Email for ExpiryNotificationEmail < ' _ > {
141141 fn subject ( & self ) -> String {
142142 format ! (
143143 "crates.io: Your API token \" {}\" is about to expire" ,
You can’t perform that action at this time.
0 commit comments