Skip to content

Commit 63ef491

Browse files
committed
upgrade to edition 2024
1 parent 0e67364 commit 63ef491

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name = "www-rust-lang-org"
33
version = "0.1.0"
44
authors = ["The Rust Project Developers"]
5-
edition = "2018"
5+
edition = "2024"
66

77
[dependencies]
88
handlebars-fluent = "0.4.0"

src/i18n.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ fn add_bundle_functions(bundle: &mut FluentBundle<&'static FluentResource>) {
1919
bundle
2020
.add_function("EMAIL", |values, _named| {
2121
let email = match values.first() {
22-
Some(FluentValue::String(ref s)) => s,
22+
Some(FluentValue::String(s)) => s,
2323
_ => return FluentValue::None,
2424
};
2525
FluentValue::String(format!("<a href='mailto:{0}' lang='en-US'>{0}</a>", email).into())
@@ -29,7 +29,7 @@ fn add_bundle_functions(bundle: &mut FluentBundle<&'static FluentResource>) {
2929
bundle
3030
.add_function("ENGLISH", |values, _named| {
3131
let text = match values.first() {
32-
Some(FluentValue::String(ref s)) => s,
32+
Some(FluentValue::String(s)) => s,
3333
_ => return FluentValue::None,
3434
};
3535
FluentValue::String(format!("<span lang='en-US'>{0}</span>", text).into())

0 commit comments

Comments
 (0)