File tree Expand file tree Collapse file tree 6 files changed +7
-13
lines changed
crates/crates_io_tarball/src Expand file tree Collapse file tree 6 files changed +7
-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.83 .0
2+ ARG RUST_VERSION=1.84 .0
33
44FROM rust:$RUST_VERSION
55
Original file line number Diff line number Diff line change @@ -111,7 +111,7 @@ pub async fn process_tarball<R: tokio::io::AsyncRead + Unpin>(
111111 let mut contents = String :: new ( ) ;
112112 entry. read_to_string ( & mut contents) . await ?;
113113 vcs_info = CargoVcsInfo :: from_contents ( & contents) . ok ( ) ;
114- } else if entry_file. to_ascii_lowercase ( ) == "cargo.toml" {
114+ } else if entry_file. eq_ignore_ascii_case ( "cargo.toml" ) {
115115 // Try to extract and read the Cargo.toml from the tarball, silently erroring if it
116116 // cannot be read.
117117 let owned_entry_path = entry_path. into_owned ( ) ;
Original file line number Diff line number Diff line change 11[toolchain ]
2- channel = " 1.83 .0"
2+ channel = " 1.84 .0"
Original file line number Diff line number Diff line change @@ -12,10 +12,7 @@ const DOMAIN_BLOCKLIST: &[&str] = &[
1212/// Return `None` if the documentation URL host matches a blocked host
1313pub fn remove_blocked_urls ( url : Option < String > ) -> Option < String > {
1414 // Handles if documentation URL is None
15- let url = match url {
16- Some ( url) => url,
17- None => return None ,
18- } ;
15+ let url = url?;
1916
2017 // Handles unsuccessful parsing of documentation URL
2118 let parsed_url = match Url :: parse ( & url) {
@@ -24,10 +21,7 @@ pub fn remove_blocked_urls(url: Option<String>) -> Option<String> {
2421 } ;
2522
2623 // Extract host string from documentation URL
27- let url_host = match parsed_url. host_str ( ) {
28- Some ( url_host) => url_host,
29- None => return None ,
30- } ;
24+ let url_host = parsed_url. host_str ( ) ?;
3125
3226 // Match documentation URL host against blocked host array elements
3327 if domain_is_blocked ( url_host) {
Original file line number Diff line number Diff line change @@ -106,7 +106,7 @@ pub struct NewCrate<'a> {
106106 pub max_features : Option < i16 > ,
107107}
108108
109- impl < ' a > NewCrate < ' a > {
109+ impl NewCrate < ' _ > {
110110 pub async fn update ( & self , conn : & mut AsyncPgConnection ) -> QueryResult < Crate > {
111111 use diesel:: update;
112112
Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ pub struct NewTeam<'a> {
4343 pub org_id : i32 ,
4444}
4545
46- impl < ' a > NewTeam < ' a > {
46+ impl NewTeam < ' _ > {
4747 pub async fn create_or_update ( & self , conn : & mut AsyncPgConnection ) -> QueryResult < Team > {
4848 use diesel:: insert_into;
4949
You can’t perform that action at this time.
0 commit comments