File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 2
2
name = " www-rust-lang-org"
3
3
version = " 0.1.0"
4
4
authors = [" The Rust Project Developers" ]
5
- edition = " 2018 "
5
+ edition = " 2024 "
6
6
7
7
[dependencies ]
8
8
handlebars-fluent = " 0.4.0"
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ fn add_bundle_functions(bundle: &mut FluentBundle<&'static FluentResource>) {
19
19
bundle
20
20
. add_function ( "EMAIL" , |values, _named| {
21
21
let email = match values. first ( ) {
22
- Some ( FluentValue :: String ( ref s) ) => s,
22
+ Some ( FluentValue :: String ( s) ) => s,
23
23
_ => return FluentValue :: None ,
24
24
} ;
25
25
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>) {
29
29
bundle
30
30
. add_function ( "ENGLISH" , |values, _named| {
31
31
let text = match values. first ( ) {
32
- Some ( FluentValue :: String ( ref s) ) => s,
32
+ Some ( FluentValue :: String ( s) ) => s,
33
33
_ => return FluentValue :: None ,
34
34
} ;
35
35
FluentValue :: String ( format ! ( "<span lang='en-US'>{0}</span>" , text) . into ( ) )
You can’t perform that action at this time.
0 commit comments