Skip to content

i18n-embed-fl: check args on MessageReference (#146) #234

i18n-embed-fl: check args on MessageReference (#146)

i18n-embed-fl: check args on MessageReference (#146) #234

Triggered via push April 14, 2025 00:10
Status Success
Total duration 47s
Artifacts

rust.yml

on: push
Fit to window
Zoom out
Zoom in

Annotations

24 warnings
Rustfmt
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Rustfmt
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Rustfmt
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Rustfmt
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Clippy: src/main.rs#L80
warning: deref on an immutable reference --> src/main.rs:80:31 | 80 | DefaultLocalizer::new(&*language_loader(), &TRANSLATIONS); | ^^^^^^^^^^^^^^^^^^^ help: if you would like to reborrow, try removing `&*`: `language_loader()` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_deref_ref = note: `#[warn(clippy::borrow_deref_ref)]` on by default
Clippy: i18n-build/src/lib.rs#L90
warning: deref on an immutable reference --> i18n-build/src/lib.rs:90:31 | 90 | DefaultLocalizer::new(&*language_loader(), &TRANSLATIONS) | ^^^^^^^^^^^^^^^^^^^ help: if you would like to reborrow, try removing `&*`: `language_loader()` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_deref_ref = note: `#[warn(clippy::borrow_deref_ref)]` on by default
Clippy: i18n-build/src/gettext_impl/mod.rs#L106
warning: you seem to be trying to use `match` for destructuring a single pattern. Consider using `if let` --> i18n-build/src/gettext_impl/mod.rs:106:9 | 106 | / match &gettext_config.msgid_bugs_address { 107 | | Some(msgid_bugs_address) => { 108 | | xtr.args(["--msgid-bugs-address", msgid_bugs_address.as_str()]); ... | 111 | | } | |_________^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_match help: try | 106 ~ if let Some(msgid_bugs_address) = &gettext_config.msgid_bugs_address { 107 + xtr.args(["--msgid-bugs-address", msgid_bugs_address.as_str()]); 108 + } |
Clippy: i18n-build/src/gettext_impl/mod.rs#L99
warning: you seem to be trying to use `match` for destructuring a single pattern. Consider using `if let` --> i18n-build/src/gettext_impl/mod.rs:99:9 | 99 | / match &gettext_config.copyright_holder { 100 | | Some(copyright_holder) => { 101 | | xtr.args(["--copyright-holder", copyright_holder.as_str()]); ... | 104 | | } | |_________^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_match = note: `#[warn(clippy::single_match)]` on by default help: try | 99 ~ if let Some(copyright_holder) = &gettext_config.copyright_holder { 100 + xtr.args(["--copyright-holder", copyright_holder.as_str()]); 101 + } |
Clippy: i18n-config/src/lib.rs#L89
warning: elided lifetime has a name --> i18n-config/src/lib.rs:155:58 | 89 | impl<'a> Crate<'a> { | -- lifetime `'a` declared here ... 155 | pub fn active_config(&'a self) -> Result<Option<(&'a Crate, &'a I18nConfig)>, I18nConfigError> { | ^^^^^ this elided lifetime gets resolved as `'a`
Clippy: i18n-config/src/lib.rs#L89
warning: elided lifetime has a name --> i18n-config/src/lib.rs:145:29 | 89 | impl<'a> Crate<'a> { | -- lifetime `'a` declared here ... 145 | ) -> Result<Option<(&'a Crate, &'a I18nConfig)>, I18nConfigError> { | ^^^^^ this elided lifetime gets resolved as `'a` | = note: `#[warn(elided_named_lifetimes)]` on by default
Clippy: i18n-config/src/lib.rs#L89
warning: elided lifetime has a name --> i18n-config/src/lib.rs:155:58 | 89 | impl<'a> Crate<'a> { | -- lifetime `'a` declared here ... 155 | pub fn active_config(&'a self) -> Result<Option<(&'a Crate, &'a I18nConfig)>, I18nConfigError> { | ^^^^^ this elided lifetime gets resolved as `'a`
Clippy
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Clippy
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Clippy
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Clippy
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Test Suite
`i18n-config` (lib test) generated 2 warnings (2 duplicates)
Test Suite
`i18n-config` (lib) generated 2 warnings
Test Suite: i18n-config/src/lib.rs#L155
elided lifetime has a name
Test Suite: i18n-config/src/lib.rs#L145
elided lifetime has a name
Test Suite
/home/runner/work/cargo-i18n/cargo-i18n/i18n-embed/i18n-embed-impl/Cargo.toml: `default-features` is ignored for syn, since `default-features` was not specified for `workspace.dependencies.syn`, this could become a hard error in the future
Test Suite
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Test Suite
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Test Suite
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Test Suite
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/