replacement in l10n_embed_interaction/src/lib.rs at line 28
− InteractionError::IO(value)
replacement in l10n_embed_interaction/src/lib.rs at line 51
[18.2848]→[18.2848:2901](∅→∅),
[18.2901]→[8.131:246](∅→∅),
[8.131]→[8.131:246](∅→∅) − interaction_context: match interactive {
− true => InteractionContext::Terminal,
− false => InteractionContext::NonInteractive,
+ interaction_context: if interactive {
+ InteractionContext::Terminal
+ } else {
+ InteractionContext::NonInteractive
edit in l10n_embed_interaction/src/editor.rs at line 10
edit in l10n_embed_derive/src/macro_impl/mod.rs at line 4
+ use camino::Utf8PathBuf;
replacement in l10n_embed_derive/src/macro_impl/mod.rs at line 69
− let tracked_paths = tracked_paths.values().map(|path| path.to_string());
+ let tracked_paths = tracked_paths.values().map(Utf8PathBuf::to_string);
replacement in l10n_embed_derive/src/fluent/mod.rs at line 135
[2.1625]→[9.871:957](∅→∅) − let named_source = NamedSource::new(path.to_string(), file_contents.clone());
+ let named_source = NamedSource::new(&path, file_contents.clone());
replacement in l10n_embed_derive/src/fluent/mod.rs at line 149
[2.2225]→[9.958:1042](∅→∅) − source_code: NamedSource::new(path.to_string(), file_contents),
+ source_code: NamedSource::new(&path, file_contents),
replacement in l10n_embed_derive/src/fluent/group.rs at line 85
[6.3242]→[2.5240:5304](∅→∅),
[2.5240]→[2.5240:5304](∅→∅) − unexpected_key: unexpected_key.to_string(),
+ unexpected_key: unexpected_key.clone(),
replacement in l10n_embed_derive/src/fluent/ast.rs at line 44
[14.3605]→[14.3605:3751](∅→∅) − VariantType::Integer { .. } => quote!(#raw_match_target),
− VariantType::Plural { .. } => {
+ VariantType::Integer => quote!(#raw_match_target),
+ VariantType::Plural => {
replacement in l10n_embed_derive/src/fluent/ast.rs at line 208
[14.9246]→[14.9246:9410](∅→∅) − match variant.default {
− // The default arm should include any enum variants not matched
− true => default_arm
+ // The default arm should include any enum variants not matched
+ if variant.default {
+ default_arm
replacement in l10n_embed_derive/src/fluent/ast.rs at line 212
[14.9479]→[14.9479:9614](∅→∅) − .expect("Multiple default variants"),
− false => match_arms.push((pattern, &variant.value)),
+ .expect("Multiple default variants")
+ } else {
+ match_arms.push((pattern, &variant.value))
replacement in l10n_embed/src/style.rs at line 8
[10.160]→[10.160:210](∅→∅) − pub fn $function_name(mut self) -> Self {
+ #[must_use]
+ pub const fn $function_name(mut self) -> Self {
replacement in l10n_embed/src/style.rs at line 44
[10.749]→[19.443:480](∅→∅) − pub fn new(message: L) -> Self {
+ pub const fn new(message: L) -> Self {
replacement in l10n_embed/src/style.rs at line 56
[10.1105]→[19.515:575](∅→∅) − pub fn color(mut self, ansi_color: AnsiColor) -> Self {
+ #[must_use]
+ pub const fn color(mut self, ansi_color: AnsiColor) -> Self {
edit in l10n_embed/src/list.rs at line 12
+ #[derive(Clone, Copy, Debug)]
replacement in l10n_embed/src/list.rs at line 27
[20.246]→[20.246:297](∅→∅) − pub fn new(messages: Vec<L>) -> Self {
+ pub const fn new(messages: Vec<L>) -> Self {
replacement in l10n_embed/src/lib.rs at line 53
[18.7744]→[19.676:734](∅→∅) − pub fn new(locale: Locale, use_color: bool) -> Self {
+ #[must_use]
+ pub const fn new(locale: Locale, use_color: bool) -> Self {
edit in l10n_embed/src/lib.rs at line 125
[18.9991]→[18.9991:10075](∅→∅) − let preferences = RelativeTimeFormatterPreferences::from(&self.locale);
edit in l10n_embed/src/lib.rs at line 128
+ let preferences = RelativeTimeFormatterPreferences::from(&self.locale);
replacement in l10n_embed/src/layout.rs at line 17
[17.1144]→[17.1144:1187](∅→∅) − pub fn new(messages: Vec<L>) -> Self {
+ #[must_use]
+ pub const fn new(messages: Vec<L>) -> Self {
replacement in l10n_embed/src/layout.rs at line 36
[18.11536]→[18.11536:11580](∅→∅) − buffer.push_str(&separator)
+ buffer.push_str(&separator);
replacement in l10n_embed/src/layout.rs at line 54
[17.2007]→[17.2007:2044](∅→∅) − pub fn new(message: L) -> Self {
+ pub const fn new(message: L) -> Self {