Skip to content

Commit ed8f91a

Browse files
committed
chore: update to Rust 1.89.0
1 parent 17db700 commit ed8f91a

File tree

7 files changed

+81
-83
lines changed

7 files changed

+81
-83
lines changed

Cargo.lock

Lines changed: 60 additions & 55 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,25 +30,25 @@ edition = "2024"
3030
keywords = ["file", "file-type", "format"]
3131
license = "Apache-2.0 OR MIT"
3232
repository = "https://github.com/theseus-rs/file-type"
33-
rust-version = "1.88.0"
33+
rust-version = "1.89.0"
3434
version = "0.8.8"
3535

3636
[workspace.dependencies]
3737
anyhow = "1.0.98"
38-
criterion = "0.6.0"
38+
criterion = "0.7.0"
3939
csv = "1.3.1"
40-
file-format = "0.27.0"
40+
file-format = "0.28.0"
4141
infer = "0.19.0"
4242
indoc = "2.0.6"
4343
magic = "0.16.2"
4444
mime_guess = "2.0.5"
4545
phf = { version = "0.12.1", default-features = false }
4646
phf_codegen = "0.12.1"
47-
quick-xml = "0.37.5"
47+
quick-xml = "0.38.1"
4848
rayon = "1.10.0"
49-
reqwest = "0.12.20"
49+
reqwest = "0.12.22"
5050
serde = "1.0.219"
51-
serde_json = "1.0.140"
51+
serde_json = "1.0.142"
5252
serde_yaml = "0.9.34"
5353
tracing = "0.1.41"
5454
tracing-subscriber = "0.3.19"

export/pronom/src/main.rs

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -30,17 +30,15 @@ fn main() -> Result<()> {
3030
initialize_tracing();
3131

3232
let mut max_fmt_puid = 2039;
33-
if let Ok(fmt_puid) = env::var("MAX_FMT_PUID") {
34-
if let Ok(fmt_puid) = fmt_puid.parse::<i64>() {
35-
max_fmt_puid = fmt_puid;
36-
}
33+
if let Ok(fmt_puid) = env::var("MAX_FMT_PUID")
34+
&& let Ok(fmt_puid) = fmt_puid.parse::<i64>() {
35+
max_fmt_puid = fmt_puid;
3736
}
3837

3938
let mut max_x_fmt_puid = 455;
40-
if let Ok(x_fmt_puid) = env::var("MAX_X_FMT_PUID") {
41-
if let Ok(x_fmt_puid) = x_fmt_puid.parse::<i64>() {
42-
max_x_fmt_puid = x_fmt_puid;
43-
}
39+
if let Ok(x_fmt_puid) = env::var("MAX_X_FMT_PUID")
40+
&& let Ok(x_fmt_puid) = x_fmt_puid.parse::<i64>() {
41+
max_x_fmt_puid = x_fmt_puid;
4442
}
4543

4644
let puid_ids = HashMap::from([("fmt", max_fmt_puid), ("x-fmt", max_x_fmt_puid)]);

export/wikidata/src/main.rs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -160,24 +160,20 @@ fn parse_json(json: &Value) -> Vec<FileFormat> {
160160
.get("extension")
161161
.and_then(|extension| extension.get("value"))
162162
.and_then(|extension| extension.as_str())
163-
{
164-
if !extensions.contains(&extension) {
163+
&& !extensions.contains(&extension) {
165164
let extension = Box::leak(extension.to_string().into_boxed_str());
166165
extensions.push(extension);
167166
extensions.sort_unstable();
168-
}
169167
}
170168

171169
if let Some(media_type) = binding
172170
.get("mediaType")
173171
.and_then(|media_type| media_type.get("value"))
174172
.and_then(|media_type| media_type.as_str())
175-
{
176-
if !media_types.contains(&media_type) {
173+
&& !media_types.contains(&media_type) {
177174
let media_type = Box::leak(media_type.to_string().into_boxed_str());
178175
media_types.push(media_type);
179176
media_types.sort_unstable();
180-
}
181177
}
182178

183179
if let Some(file_signature) = binding

0 commit comments

Comments
 (0)