File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 22name = " www-rust-lang-org"
33version = " 0.1.0"
44authors = [" The Rust Project Developers" ]
5- edition = " 2018 "
5+ edition = " 2024 "
66
77[dependencies ]
88handlebars-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>) {
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 ( ) )
You can’t perform that action at this time.
0 commit comments