Skip to content

Commit c31f46a

Browse files
authored
Merge pull request #10359 from rust-lang/renovate/rust-1.x
Update Rust to v1.84.0
2 parents a11c3ca + fb60a17 commit c31f46a

File tree

6 files changed

+7
-13
lines changed

6 files changed

+7
-13
lines changed

backend.Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
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

44
FROM rust:$RUST_VERSION
55

crates/crates_io_tarball/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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();

rust-toolchain.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
[toolchain]
2-
channel = "1.83.0"
2+
channel = "1.84.0"

src/external_urls.rs

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,7 @@ const DOMAIN_BLOCKLIST: &[&str] = &[
1212
/// Return `None` if the documentation URL host matches a blocked host
1313
pub 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) {

src/models/krate.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

src/models/team.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)