From a25fd10e5f3bb11ac36ab2226f551978b160ee31 Mon Sep 17 00:00:00 2001 From: cscherrNT Date: Tue, 25 Jun 2024 10:03:55 +0000 Subject: [PATCH] automatic cargo CI changes --- members/fluent-demo/src/main.rs | 4 ++-- members/serde-json-demo/src/main.rs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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};