update #131: Remove lazy_static dependency #219
Annotations
33 warnings
Rustfmt
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions-rs/toolchain@v1, actions-rs/cargo@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|
Rustfmt
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v2, actions-rs/toolchain@v1, actions-rs/cargo@v1. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
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
The following actions uses node12 which is deprecated and will be forced to run on node16: actions-rs/toolchain@v1, actions-rs/clippy@master. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|
Clippy
The following actions use a deprecated Node.js version and will be forced to run on node20: actions-rs/toolchain@v1, actions-rs/clippy@master. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
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/
|
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:
i18n-config/src/lib.rs#L321
warning: the following explicit lifetimes could be elided: 'a
--> i18n-config/src/lib.rs:321:6
|
321 | impl<'a> Display for Crate<'a> {
| ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
= note: `#[warn(clippy::needless_lifetimes)]` on by default
help: elide the lifetimes
|
321 - impl<'a> Display for Crate<'a> {
321 + impl Display for Crate<'_> {
|
|
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:
i18n-config/src/lib.rs#L321
warning: the following explicit lifetimes could be elided: 'a
--> i18n-config/src/lib.rs:321:6
|
321 | impl<'a> Display for Crate<'a> {
| ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
= note: `#[warn(clippy::needless_lifetimes)]` on by default
help: elide the lifetimes
|
321 - impl<'a> Display for Crate<'a> {
321 + impl Display for Crate<'_> {
|
|
Clippy:
i18n-embed/src/lib.rs#L549
warning: the following explicit lifetimes could be elided: 'a
--> i18n-embed/src/lib.rs:549:6
|
549 | impl<'a> Localizer for DefaultLocalizer<'a> {
| ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
= note: `#[warn(clippy::needless_lifetimes)]` on by default
help: elide the lifetimes
|
549 - impl<'a> Localizer for DefaultLocalizer<'a> {
549 + impl Localizer for DefaultLocalizer<'_> {
|
|
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()]);
102 | | }
103 | | None => {}
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-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()]);
109 | | }
110 | | None => {}
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/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
|
Test Suite
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions-rs/toolchain@v1, actions-rs/cargo@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|
Test Suite
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v2, actions-rs/toolchain@v1, actions-rs/cargo@v1. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
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/
|
Test Suite
/home/runner/work/cargo-i18n/cargo-i18n/i18n-build/Cargo.toml: `default-features` is ignored for tr, since `default-features` was not specified for `workspace.dependencies.tr`, this could become a hard error in the future
|
Test Suite:
i18n-config/src/lib.rs#L145
elided lifetime has a name
|
Test Suite:
i18n-config/src/lib.rs#L155
elided lifetime has a name
|
Test Suite
`i18n-config` (lib) generated 2 warnings
|
Test Suite
`i18n-config` (lib test) generated 2 warnings (2 duplicates)
|