diff --git a/members/fluent-demo/src/main.rs b/members/fluent-demo/src/main.rs index 17bb825..4248637 100644 --- a/members/fluent-demo/src/main.rs +++ b/members/fluent-demo/src/main.rs @@ -25,7 +25,7 @@ intro = Welcome, { $name }. .expect("Message doesn't exist."); let mut errors = vec![]; let pattern = msg.value().expect("Message has no value."); - let value = bundle.format_pattern(&pattern, None, &mut errors); + let value = bundle.format_pattern(pattern, None, &mut errors); assert_eq!(&value, "Hello, world!"); println!("{value}"); @@ -36,7 +36,7 @@ intro = Welcome, { $name }. let msg = bundle.get_message("intro").expect("Message doesn't exist."); let mut errors = vec![]; let pattern = msg.value().expect("Message has no value."); - let value = bundle.format_pattern(&pattern, Some(&args), &mut errors); + let value = bundle.format_pattern(pattern, Some(&args), &mut errors); // The FSI/PDI isolation marks ensure that the direction of // the text from the variable is not affected by the translation. diff --git a/members/serde-json-demo/src/main.rs b/members/serde-json-demo/src/main.rs index be17d9d..4a4904c 100644 --- a/members/serde-json-demo/src/main.rs +++ b/members/serde-json-demo/src/main.rs @@ -24,7 +24,7 @@ enum Color { Green, Yellow, Red, - Custom(String) + Custom(String), } use serde_repr::{Deserialize_repr, Serialize_repr};