Switch to getting locales with sys-locale crate (#154) #249
Annotations
32 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:
i18n-config/src/lib.rs#L156
warning: variables can be used directly in the `format!` string
--> i18n-config/src/lib.rs:156:9
|
156 | debug!("Resolving active config for {0}", self);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
= note: `#[warn(clippy::uninlined_format_args)]` on by default
help: change this to
|
156 - debug!("Resolving active config for {0}", self);
156 + debug!("Resolving active config for {self}");
|
|
|
Clippy:
i18n-config/src/lib.rs#L155
warning: lifetime flowing from input to output with different syntax can be confusing
--> i18n-config/src/lib.rs:155:27
|
155 | pub fn active_config(&'a self) -> Result<Option<(&'a Crate, &'a I18nConfig)>, I18nConfigError> {
| ^^ -- ----- -- the lifetimes get resolved as `'a`
| | | |
| | | the lifetimes get resolved as `'a`
| | the lifetimes get resolved as `'a`
| this lifetime flows to the output
|
help: one option is to consistently use `'a`
|
155 | pub fn active_config(&'a self) -> Result<Option<(&'a Crate<'a>, &'a I18nConfig)>, I18nConfigError> {
| ++++
|
|
Clippy:
i18n-config/src/lib.rs#L144
warning: lifetime flowing from input to output with different syntax can be confusing
--> i18n-config/src/lib.rs:144:10
|
144 | &'a self,
| ^^ this lifetime flows to the output
145 | ) -> Result<Option<(&'a Crate, &'a I18nConfig)>, I18nConfigError> {
| -- ----- -- the lifetimes get resolved as `'a`
| | |
| | the lifetimes get resolved as `'a`
| the lifetimes get resolved as `'a`
|
= note: `#[warn(mismatched_lifetime_syntaxes)]` on by default
help: one option is to consistently use `'a`
|
145 | ) -> Result<Option<(&'a Crate<'a>, &'a I18nConfig)>, I18nConfigError> {
| ++++
|
|
Clippy:
i18n-config/src/lib.rs#L314
warning: variables can be used directly in the `format!` string
--> i18n-config/src/lib.rs:314:17
|
314 | debug!("Could not find a valid parent of {0}.", self);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
314 - debug!("Could not find a valid parent of {0}.", self);
314 + debug!("Could not find a valid parent of {self}.");
|
|
|
Clippy:
i18n-config/src/lib.rs#L309
warning: variables can be used directly in the `format!` string
--> i18n-config/src/lib.rs:309:21
|
309 | debug!("Parent {0} of {1} does not have an i18n config", crt, self);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
309 - debug!("Parent {0} of {1} does not have an i18n config", crt, self);
309 + debug!("Parent {crt} of {self} does not have an i18n config");
|
|
|
Clippy:
i18n-config/src/lib.rs#L256
warning: variables can be used directly in the `format!` string
--> i18n-config/src/lib.rs:256:29
|
256 | ... debug!("The parent of {0} at path {1:?} is a workspace", self, path);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
256 - debug!("The parent of {0} at path {1:?} is a workspace", self, path);
256 + debug!("The parent of {self} at path {path:?} is a workspace");
|
|
|
Clippy:
i18n-config/src/lib.rs#L250
warning: variables can be used directly in the `format!` string
--> i18n-config/src/lib.rs:250:21
|
250 | debug!("Found parent ({0}) of {1}.", parent_crate, self);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
250 - debug!("Found parent ({0}) of {1}.", parent_crate, self);
250 + debug!("Found parent ({parent_crate}) of {self}.");
|
|
|
Clippy:
i18n-config/src/lib.rs#L182
warning: variables can be used directly in the `format!` string
--> i18n-config/src/lib.rs:182:17
|
182 | / debug!(
183 | | "{0} has no i18n config, attempting to obtain parent config instead.",
184 | | self
185 | | );
| |_________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
|
|
Clippy:
i18n-config/src/lib.rs#L161
warning: variables can be used directly in the `format!` string
--> i18n-config/src/lib.rs:161:25
|
161 | debug!("Resolving active config for {0}, extract_to_parent is true, so attempting to obtain parent config.", self);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
161 - debug!("Resolving active config for {0}, extract_to_parent is true, so attempting to obtain parent config.", self);
161 + debug!("Resolving active config for {self}, extract_to_parent is true, so attempting to obtain parent config.");
|
|
|
Clippy:
i18n-config/src/lib.rs#L156
warning: variables can be used directly in the `format!` string
--> i18n-config/src/lib.rs:156:9
|
156 | debug!("Resolving active config for {0}", self);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
= note: `#[warn(clippy::uninlined_format_args)]` on by default
help: change this to
|
156 - debug!("Resolving active config for {0}", self);
156 + debug!("Resolving active config for {self}");
|
|
|
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-embed-fl` (lib test) generated 3 warnings (3 duplicates)
|
|
Test Suite
`i18n-embed-fl` (lib) generated 3 warnings (run `cargo fix --lib -p i18n-embed-fl` to apply 1 suggestion)
|
|
Test Suite:
i18n-embed-fl/src/lib.rs#L196
lifetime flowing from input to output with different syntax can be confusing
|
|
Test Suite:
i18n-embed-fl/src/lib.rs#L191
lifetime flowing from input to output with different syntax can be confusing
|
|
Test Suite:
i18n-embed-fl/src/lib.rs#L9
unused import: `HashMap`
|
|
Test Suite
`i18n-config` (lib) generated 2 warnings
|
|
Test Suite:
i18n-config/src/lib.rs#L155
lifetime flowing from input to output with different syntax can be confusing
|
|
Test Suite:
i18n-config/src/lib.rs#L144
lifetime flowing from input to output with different syntax can be confusing
|
|
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
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/
|