.github/workflows/workspace.yml #1120
Annotations
4 errors and 50 warnings
build-and-test (1.81.0, windows-2022, x86_64-pc-windows-msvc)
Process completed with exit code 1.
|
build-and-test (beta, windows-2022, x86_64-pc-windows-msvc)
Process completed with exit code 1.
|
build-and-test (stable, windows-2022, x86_64-pc-windows-msvc)
Process completed with exit code 1.
|
build-and-test (nightly, windows-2022, x86_64-pc-windows-msvc)
Process completed with exit code 1.
|
build-and-test (stable, ubuntu-22.04, x86_64-unknown-linux-gnu)
The following actions uses node12 which is deprecated and will be forced to run on node16: 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/
|
build-and-test (stable, ubuntu-22.04, x86_64-unknown-linux-gnu)
The following actions use a deprecated Node.js version and will be forced to run on node20: 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/
|
build-and-test (stable, ubuntu-22.04, x86_64-unknown-linux-gnu):
python-packed-resources/src/parser.rs#L65
warning: variable does not need to be mutable
--> python-packed-resources/src/parser.rs:65:13
|
65 | let mut state = self.blob_sections[resource_field as usize]
| ----^^^^^
| |
| help: remove this `mut`
|
= note: `#[warn(unused_mut)]` on by default
|
build-and-test (stable, ubuntu-22.04, x86_64-unknown-linux-gnu):
python-packed-resources/src/parser.rs#L516
warning: the following explicit lifetimes could be elided: 'a
--> python-packed-resources/src/parser.rs:516:23
|
516 | pub fn load_resources<'a>(data: &'a [u8]) -> Result<ResourceParserIterator<'a>, &'static str> {
| ^^ ^^ ^^
|
= 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
|
516 - pub fn load_resources<'a>(data: &'a [u8]) -> Result<ResourceParserIterator<'a>, &'static str> {
516 + pub fn load_resources(data: &[u8]) -> Result<ResourceParserIterator<'_>, &'static str> {
|
|
build-and-test (stable, ubuntu-22.04, x86_64-unknown-linux-gnu):
python-packed-resources/src/parser.rs#L530
warning: the following explicit lifetimes could be elided: 'a
--> python-packed-resources/src/parser.rs:530:22
|
530 | fn load_resources_v3<'a>(data: &'a [u8]) -> Result<ResourceParserIterator<'a>, &'static str> {
| ^^ ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
530 - fn load_resources_v3<'a>(data: &'a [u8]) -> Result<ResourceParserIterator<'a>, &'static str> {
530 + fn load_resources_v3(data: &[u8]) -> Result<ResourceParserIterator<'_>, &'static str> {
|
|
build-and-test (stable, ubuntu-22.04, x86_64-unknown-linux-gnu):
python-packaging/src/interpreter.rs#L44
warning: this `impl` can be derived
--> python-packaging/src/interpreter.rs:44:1
|
44 | / impl Default for PythonInterpreterProfile {
45 | | fn default() -> Self {
46 | | PythonInterpreterProfile::Isolated
47 | | }
48 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derivable_impls
= note: `#[warn(clippy::derivable_impls)]` on by default
= help: remove the manual implementation...
help: ...and instead derive it...
|
28 + #[derive(Default)]
29 | pub enum PythonInterpreterProfile {
|
help: ...and mark the default variant
|
34 ~ #[default]
35 ~ Isolated,
|
|
build-and-test (stable, ubuntu-22.04, x86_64-unknown-linux-gnu):
python-packaging/src/interpreter.rs#L50
warning: direct implementation of `ToString`
--> python-packaging/src/interpreter.rs:50:1
|
50 | / impl ToString for PythonInterpreterProfile {
51 | | fn to_string(&self) -> String {
52 | | match self {
53 | | Self::Isolated => "isolated",
... |
57 | | }
58 | | }
| |_^
|
= help: prefer implementing `Display` instead
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#to_string_trait_impl
= note: `#[warn(clippy::to_string_trait_impl)]` on by default
|
build-and-test (stable, ubuntu-22.04, x86_64-unknown-linux-gnu):
python-packaging/src/interpreter.rs#L138
warning: direct implementation of `ToString`
--> python-packaging/src/interpreter.rs:138:1
|
138 | / impl ToString for TerminfoResolution {
139 | | fn to_string(&self) -> String {
140 | | match self {
141 | | Self::Dynamic => "dynamic".to_string(),
... |
145 | | }
146 | | }
| |_^
|
= help: prefer implementing `Display` instead
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#to_string_trait_impl
|
build-and-test (stable, ubuntu-22.04, x86_64-unknown-linux-gnu):
python-packaging/src/interpreter.rs#L246
warning: direct implementation of `ToString`
--> python-packaging/src/interpreter.rs:246:1
|
246 | / impl ToString for MemoryAllocatorBackend {
247 | | fn to_string(&self) -> String {
248 | | match self {
249 | | Self::Default => "default",
... |
256 | | }
257 | | }
| |_^
|
= help: prefer implementing `Display` instead
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#to_string_trait_impl
|
build-and-test (stable, ubuntu-22.04, x86_64-unknown-linux-gnu):
python-packaging/src/interpreter.rs#L309
warning: direct implementation of `ToString`
--> python-packaging/src/interpreter.rs:309:1
|
309 | / impl ToString for CoerceCLocale {
310 | | fn to_string(&self) -> String {
311 | | match self {
312 | | Self::LCCtype => "LC_CTYPE",
... |
316 | | }
317 | | }
| |_^
|
= help: prefer implementing `Display` instead
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#to_string_trait_impl
|
build-and-test (stable, ubuntu-22.04, x86_64-unknown-linux-gnu):
python-packaging/src/interpreter.rs#L370
warning: direct implementation of `ToString`
--> python-packaging/src/interpreter.rs:370:1
|
370 | / impl ToString for BytesWarning {
371 | | fn to_string(&self) -> String {
372 | | match self {
373 | | Self::None => "none",
... |
378 | | }
379 | | }
| |_^
|
= help: prefer implementing `Display` instead
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#to_string_trait_impl
|
build-and-test (stable, ubuntu-22.04, x86_64-unknown-linux-gnu):
python-packaging/src/interpreter.rs#L443
warning: direct implementation of `ToString`
--> python-packaging/src/interpreter.rs:443:1
|
443 | / impl ToString for CheckHashPycsMode {
444 | | fn to_string(&self) -> String {
445 | | match self {
446 | | Self::Always => "always",
... |
451 | | }
452 | | }
| |_^
|
= help: prefer implementing `Display` instead
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#to_string_trait_impl
|
build-and-test (beta, ubuntu-22.04, x86_64-unknown-linux-gnu)
The following actions uses node12 which is deprecated and will be forced to run on node16: 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/
|
build-and-test (beta, ubuntu-22.04, x86_64-unknown-linux-gnu)
The following actions use a deprecated Node.js version and will be forced to run on node20: 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/
|
build-and-test (beta, ubuntu-22.04, x86_64-unknown-linux-gnu):
python-packed-resources/src/parser.rs#L65
warning: variable does not need to be mutable
--> python-packed-resources/src/parser.rs:65:13
|
65 | let mut state = self.blob_sections[resource_field as usize]
| ----^^^^^
| |
| help: remove this `mut`
|
= note: `#[warn(unused_mut)]` on by default
|
build-and-test (beta, ubuntu-22.04, x86_64-unknown-linux-gnu):
python-packed-resources/src/parser.rs#L516
warning: the following explicit lifetimes could be elided: 'a
--> python-packed-resources/src/parser.rs:516:23
|
516 | pub fn load_resources<'a>(data: &'a [u8]) -> Result<ResourceParserIterator<'a>, &'static str> {
| ^^ ^^ ^^
|
= 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
|
516 - pub fn load_resources<'a>(data: &'a [u8]) -> Result<ResourceParserIterator<'a>, &'static str> {
516 + pub fn load_resources(data: &[u8]) -> Result<ResourceParserIterator<'_>, &'static str> {
|
|
build-and-test (beta, ubuntu-22.04, x86_64-unknown-linux-gnu):
python-packed-resources/src/parser.rs#L530
warning: the following explicit lifetimes could be elided: 'a
--> python-packed-resources/src/parser.rs:530:22
|
530 | fn load_resources_v3<'a>(data: &'a [u8]) -> Result<ResourceParserIterator<'a>, &'static str> {
| ^^ ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
530 - fn load_resources_v3<'a>(data: &'a [u8]) -> Result<ResourceParserIterator<'a>, &'static str> {
530 + fn load_resources_v3(data: &[u8]) -> Result<ResourceParserIterator<'_>, &'static str> {
|
|
build-and-test (beta, ubuntu-22.04, x86_64-unknown-linux-gnu):
python-packed-resources/src/resource.rs#L120
warning: the following explicit lifetimes could be elided: 'a
--> python-packed-resources/src/resource.rs:120:6
|
120 | impl<'a, X> Default for Resource<'a, X>
| ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
120 - impl<'a, X> Default for Resource<'a, X>
120 + impl<X> Default for Resource<'_, X>
|
|
build-and-test (beta, ubuntu-22.04, x86_64-unknown-linux-gnu):
python-packaging/src/interpreter.rs#L44
warning: this `impl` can be derived
--> python-packaging/src/interpreter.rs:44:1
|
44 | / impl Default for PythonInterpreterProfile {
45 | | fn default() -> Self {
46 | | PythonInterpreterProfile::Isolated
47 | | }
48 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derivable_impls
= note: `#[warn(clippy::derivable_impls)]` on by default
= help: remove the manual implementation...
help: ...and instead derive it...
|
28 + #[derive(Default)]
29 | pub enum PythonInterpreterProfile {
|
help: ...and mark the default variant
|
34 ~ #[default]
35 ~ Isolated,
|
|
build-and-test (beta, ubuntu-22.04, x86_64-unknown-linux-gnu):
python-packaging/src/interpreter.rs#L50
warning: direct implementation of `ToString`
--> python-packaging/src/interpreter.rs:50:1
|
50 | / impl ToString for PythonInterpreterProfile {
51 | | fn to_string(&self) -> String {
52 | | match self {
53 | | Self::Isolated => "isolated",
... |
57 | | }
58 | | }
| |_^
|
= help: prefer implementing `Display` instead
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#to_string_trait_impl
= note: `#[warn(clippy::to_string_trait_impl)]` on by default
|
build-and-test (beta, ubuntu-22.04, x86_64-unknown-linux-gnu):
python-packaging/src/interpreter.rs#L138
warning: direct implementation of `ToString`
--> python-packaging/src/interpreter.rs:138:1
|
138 | / impl ToString for TerminfoResolution {
139 | | fn to_string(&self) -> String {
140 | | match self {
141 | | Self::Dynamic => "dynamic".to_string(),
... |
145 | | }
146 | | }
| |_^
|
= help: prefer implementing `Display` instead
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#to_string_trait_impl
|
build-and-test (beta, ubuntu-22.04, x86_64-unknown-linux-gnu):
python-packaging/src/interpreter.rs#L246
warning: direct implementation of `ToString`
--> python-packaging/src/interpreter.rs:246:1
|
246 | / impl ToString for MemoryAllocatorBackend {
247 | | fn to_string(&self) -> String {
248 | | match self {
249 | | Self::Default => "default",
... |
256 | | }
257 | | }
| |_^
|
= help: prefer implementing `Display` instead
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#to_string_trait_impl
|
build-and-test (beta, ubuntu-22.04, x86_64-unknown-linux-gnu):
python-packaging/src/interpreter.rs#L309
warning: direct implementation of `ToString`
--> python-packaging/src/interpreter.rs:309:1
|
309 | / impl ToString for CoerceCLocale {
310 | | fn to_string(&self) -> String {
311 | | match self {
312 | | Self::LCCtype => "LC_CTYPE",
... |
316 | | }
317 | | }
| |_^
|
= help: prefer implementing `Display` instead
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#to_string_trait_impl
|
build-and-test (beta, ubuntu-22.04, x86_64-unknown-linux-gnu):
python-packaging/src/interpreter.rs#L370
warning: direct implementation of `ToString`
--> python-packaging/src/interpreter.rs:370:1
|
370 | / impl ToString for BytesWarning {
371 | | fn to_string(&self) -> String {
372 | | match self {
373 | | Self::None => "none",
... |
378 | | }
379 | | }
| |_^
|
= help: prefer implementing `Display` instead
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#to_string_trait_impl
|
build-and-test (1.81.0, macos-12, x86_64-apple-darwin)
A brownout will take place on November 11, 14:00 UTC - November 12, 00:00 UTC to raise awareness of the upcoming macOS-12 environment removal. For more details, see https://github.com/actions/runner-images/issues/10721
|
build-and-test (beta, macos-12, x86_64-apple-darwin)
The following actions uses node12 which is deprecated and will be forced to run on node16: 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/
|
build-and-test (beta, macos-12, x86_64-apple-darwin)
The following actions use a deprecated Node.js version and will be forced to run on node20: 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/
|
build-and-test (beta, macos-12, x86_64-apple-darwin):
python-packed-resources/src/parser.rs#L65
warning: variable does not need to be mutable
--> python-packed-resources/src/parser.rs:65:13
|
65 | let mut state = self.blob_sections[resource_field as usize]
| ----^^^^^
| |
| help: remove this `mut`
|
= note: `#[warn(unused_mut)]` on by default
|
build-and-test (beta, macos-12, x86_64-apple-darwin):
python-packed-resources/src/parser.rs#L516
warning: the following explicit lifetimes could be elided: 'a
--> python-packed-resources/src/parser.rs:516:23
|
516 | pub fn load_resources<'a>(data: &'a [u8]) -> Result<ResourceParserIterator<'a>, &'static str> {
| ^^ ^^ ^^
|
= 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
|
516 - pub fn load_resources<'a>(data: &'a [u8]) -> Result<ResourceParserIterator<'a>, &'static str> {
516 + pub fn load_resources(data: &[u8]) -> Result<ResourceParserIterator<'_>, &'static str> {
|
|
build-and-test (beta, macos-12, x86_64-apple-darwin):
python-packed-resources/src/parser.rs#L530
warning: the following explicit lifetimes could be elided: 'a
--> python-packed-resources/src/parser.rs:530:22
|
530 | fn load_resources_v3<'a>(data: &'a [u8]) -> Result<ResourceParserIterator<'a>, &'static str> {
| ^^ ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
530 - fn load_resources_v3<'a>(data: &'a [u8]) -> Result<ResourceParserIterator<'a>, &'static str> {
530 + fn load_resources_v3(data: &[u8]) -> Result<ResourceParserIterator<'_>, &'static str> {
|
|
build-and-test (beta, macos-12, x86_64-apple-darwin):
python-packed-resources/src/resource.rs#L120
warning: the following explicit lifetimes could be elided: 'a
--> python-packed-resources/src/resource.rs:120:6
|
120 | impl<'a, X> Default for Resource<'a, X>
| ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
120 - impl<'a, X> Default for Resource<'a, X>
120 + impl<X> Default for Resource<'_, X>
|
|
build-and-test (beta, macos-12, x86_64-apple-darwin):
python-packaging/src/interpreter.rs#L44
warning: this `impl` can be derived
--> python-packaging/src/interpreter.rs:44:1
|
44 | / impl Default for PythonInterpreterProfile {
45 | | fn default() -> Self {
46 | | PythonInterpreterProfile::Isolated
47 | | }
48 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derivable_impls
= note: `#[warn(clippy::derivable_impls)]` on by default
= help: remove the manual implementation...
help: ...and instead derive it...
|
28 + #[derive(Default)]
29 | pub enum PythonInterpreterProfile {
|
help: ...and mark the default variant
|
34 ~ #[default]
35 ~ Isolated,
|
|
build-and-test (beta, macos-12, x86_64-apple-darwin):
python-packaging/src/interpreter.rs#L50
warning: direct implementation of `ToString`
--> python-packaging/src/interpreter.rs:50:1
|
50 | / impl ToString for PythonInterpreterProfile {
51 | | fn to_string(&self) -> String {
52 | | match self {
53 | | Self::Isolated => "isolated",
... |
57 | | }
58 | | }
| |_^
|
= help: prefer implementing `Display` instead
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#to_string_trait_impl
= note: `#[warn(clippy::to_string_trait_impl)]` on by default
|
build-and-test (beta, macos-12, x86_64-apple-darwin):
python-packaging/src/interpreter.rs#L138
warning: direct implementation of `ToString`
--> python-packaging/src/interpreter.rs:138:1
|
138 | / impl ToString for TerminfoResolution {
139 | | fn to_string(&self) -> String {
140 | | match self {
141 | | Self::Dynamic => "dynamic".to_string(),
... |
145 | | }
146 | | }
| |_^
|
= help: prefer implementing `Display` instead
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#to_string_trait_impl
|
build-and-test (beta, macos-12, x86_64-apple-darwin):
python-packaging/src/interpreter.rs#L246
warning: direct implementation of `ToString`
--> python-packaging/src/interpreter.rs:246:1
|
246 | / impl ToString for MemoryAllocatorBackend {
247 | | fn to_string(&self) -> String {
248 | | match self {
249 | | Self::Default => "default",
... |
256 | | }
257 | | }
| |_^
|
= help: prefer implementing `Display` instead
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#to_string_trait_impl
|
build-and-test (beta, macos-12, x86_64-apple-darwin):
python-packaging/src/interpreter.rs#L309
warning: direct implementation of `ToString`
--> python-packaging/src/interpreter.rs:309:1
|
309 | / impl ToString for CoerceCLocale {
310 | | fn to_string(&self) -> String {
311 | | match self {
312 | | Self::LCCtype => "LC_CTYPE",
... |
316 | | }
317 | | }
| |_^
|
= help: prefer implementing `Display` instead
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#to_string_trait_impl
|
build-and-test (beta, macos-12, x86_64-apple-darwin):
python-packaging/src/interpreter.rs#L370
warning: direct implementation of `ToString`
--> python-packaging/src/interpreter.rs:370:1
|
370 | / impl ToString for BytesWarning {
371 | | fn to_string(&self) -> String {
372 | | match self {
373 | | Self::None => "none",
... |
378 | | }
379 | | }
| |_^
|
= help: prefer implementing `Display` instead
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#to_string_trait_impl
|
build-and-test (stable, macos-12, x86_64-apple-darwin)
The following actions uses node12 which is deprecated and will be forced to run on node16: 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/
|
build-and-test (stable, macos-12, x86_64-apple-darwin)
The following actions use a deprecated Node.js version and will be forced to run on node20: 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/
|
build-and-test (stable, macos-12, x86_64-apple-darwin):
python-packed-resources/src/parser.rs#L65
warning: variable does not need to be mutable
--> python-packed-resources/src/parser.rs:65:13
|
65 | let mut state = self.blob_sections[resource_field as usize]
| ----^^^^^
| |
| help: remove this `mut`
|
= note: `#[warn(unused_mut)]` on by default
|
build-and-test (stable, macos-12, x86_64-apple-darwin):
python-packed-resources/src/parser.rs#L516
warning: the following explicit lifetimes could be elided: 'a
--> python-packed-resources/src/parser.rs:516:23
|
516 | pub fn load_resources<'a>(data: &'a [u8]) -> Result<ResourceParserIterator<'a>, &'static str> {
| ^^ ^^ ^^
|
= 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
|
516 - pub fn load_resources<'a>(data: &'a [u8]) -> Result<ResourceParserIterator<'a>, &'static str> {
516 + pub fn load_resources(data: &[u8]) -> Result<ResourceParserIterator<'_>, &'static str> {
|
|
build-and-test (stable, macos-12, x86_64-apple-darwin):
python-packed-resources/src/parser.rs#L530
warning: the following explicit lifetimes could be elided: 'a
--> python-packed-resources/src/parser.rs:530:22
|
530 | fn load_resources_v3<'a>(data: &'a [u8]) -> Result<ResourceParserIterator<'a>, &'static str> {
| ^^ ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
530 - fn load_resources_v3<'a>(data: &'a [u8]) -> Result<ResourceParserIterator<'a>, &'static str> {
530 + fn load_resources_v3(data: &[u8]) -> Result<ResourceParserIterator<'_>, &'static str> {
|
|
build-and-test (stable, macos-12, x86_64-apple-darwin):
python-packaging/src/interpreter.rs#L44
warning: this `impl` can be derived
--> python-packaging/src/interpreter.rs:44:1
|
44 | / impl Default for PythonInterpreterProfile {
45 | | fn default() -> Self {
46 | | PythonInterpreterProfile::Isolated
47 | | }
48 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derivable_impls
= note: `#[warn(clippy::derivable_impls)]` on by default
= help: remove the manual implementation...
help: ...and instead derive it...
|
28 + #[derive(Default)]
29 | pub enum PythonInterpreterProfile {
|
help: ...and mark the default variant
|
34 ~ #[default]
35 ~ Isolated,
|
|
build-and-test (stable, macos-12, x86_64-apple-darwin):
python-packaging/src/interpreter.rs#L50
warning: direct implementation of `ToString`
--> python-packaging/src/interpreter.rs:50:1
|
50 | / impl ToString for PythonInterpreterProfile {
51 | | fn to_string(&self) -> String {
52 | | match self {
53 | | Self::Isolated => "isolated",
... |
57 | | }
58 | | }
| |_^
|
= help: prefer implementing `Display` instead
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#to_string_trait_impl
= note: `#[warn(clippy::to_string_trait_impl)]` on by default
|
build-and-test (stable, macos-12, x86_64-apple-darwin):
python-packaging/src/interpreter.rs#L138
warning: direct implementation of `ToString`
--> python-packaging/src/interpreter.rs:138:1
|
138 | / impl ToString for TerminfoResolution {
139 | | fn to_string(&self) -> String {
140 | | match self {
141 | | Self::Dynamic => "dynamic".to_string(),
... |
145 | | }
146 | | }
| |_^
|
= help: prefer implementing `Display` instead
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#to_string_trait_impl
|
build-and-test (stable, macos-12, x86_64-apple-darwin):
python-packaging/src/interpreter.rs#L246
warning: direct implementation of `ToString`
--> python-packaging/src/interpreter.rs:246:1
|
246 | / impl ToString for MemoryAllocatorBackend {
247 | | fn to_string(&self) -> String {
248 | | match self {
249 | | Self::Default => "default",
... |
256 | | }
257 | | }
| |_^
|
= help: prefer implementing `Display` instead
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#to_string_trait_impl
|
build-and-test (stable, macos-12, x86_64-apple-darwin):
python-packaging/src/interpreter.rs#L309
warning: direct implementation of `ToString`
--> python-packaging/src/interpreter.rs:309:1
|
309 | / impl ToString for CoerceCLocale {
310 | | fn to_string(&self) -> String {
311 | | match self {
312 | | Self::LCCtype => "LC_CTYPE",
... |
316 | | }
317 | | }
| |_^
|
= help: prefer implementing `Display` instead
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#to_string_trait_impl
|
build-and-test (stable, macos-12, x86_64-apple-darwin):
python-packaging/src/interpreter.rs#L370
warning: direct implementation of `ToString`
--> python-packaging/src/interpreter.rs:370:1
|
370 | / impl ToString for BytesWarning {
371 | | fn to_string(&self) -> String {
372 | | match self {
373 | | Self::None => "none",
... |
378 | | }
379 | | }
| |_^
|
= help: prefer implementing `Display` instead
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#to_string_trait_impl
|
build-and-test (stable, macos-12, x86_64-apple-darwin):
python-packaging/src/interpreter.rs#L443
warning: direct implementation of `ToString`
--> python-packaging/src/interpreter.rs:443:1
|
443 | / impl ToString for CheckHashPycsMode {
444 | | fn to_string(&self) -> String {
445 | | match self {
446 | | Self::Always => "always",
... |
451 | | }
452 | | }
| |_^
|
= help: prefer implementing `Display` instead
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#to_string_trait_impl
|
build-and-test (nightly, macos-12, x86_64-apple-darwin)
A brownout will take place on November 11, 14:00 UTC - November 12, 00:00 UTC to raise awareness of the upcoming macOS-12 environment removal. For more details, see https://github.com/actions/runner-images/issues/10721
|