Dependency Management #176
GitHub Actions / Clippy Output
failed
Sep 20, 2024 in 0s
Clippy Output
2 errors
Details
Results
Message level | Amount |
---|---|
Internal compiler error | 0 |
Error | 2 |
Warning | 0 |
Note | 0 |
Help | 0 |
Versions
- rustc 1.81.0 (eeb90cda1 2024-09-04)
- cargo 1.81.0 (2dbb1af80 2024-08-20)
- clippy 0.1.81 (eeb90cd 2024-09-04)
Annotations
Check failure on line 354 in src/package/mod.rs
github-actions / Clippy Output
no variant or associated item named `from_str` found for enum `versions::Versioning` in the current scope
error[E0599]: no variant or associated item named `from_str` found for enum `versions::Versioning` in the current scope
--> src/package/mod.rs:354:38
|
354 | version: Versioning::from_str("0.1.0").unwrap(),
| ^^^^^^^^ variant or associated item not found in `Versioning`
|
note: if you're trying to build a new `versions::Versioning` consider using one of the following associated functions:
versions::Versioning::new
versions::Versioning::deserialize_pretty
--> /home/runner/.cargo/git/checkouts/rs-versions-0f453f115a4484a6/7802574/src/lib.rs:1355:5
|
1355 | pub fn new(s: &str) -> Option<Versioning> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
...
1461 | / pub fn deserialize_pretty<'de, D>(deserializer: D) -> Result<Versioning, D::Error>
1462 | | where
1463 | | D: Deserializer<'de>,
| |_____________________________^
= help: items from traits can only be used if the trait is in scope
help: trait `FromStr` which provides `from_str` is implemented but not in scope; perhaps you want to import it
|
1 + use std::str::FromStr;
|
help: there is an associated function `from` with a similar name
|
354 | version: Versioning::from("0.1.0").unwrap(),
| ~~~~
Check failure on line 297 in src/package/mod.rs
github-actions / Clippy Output
no variant or associated item named `from_str` found for enum `versions::Versioning` in the current scope
error[E0599]: no variant or associated item named `from_str` found for enum `versions::Versioning` in the current scope
--> src/package/mod.rs:297:21
|
297 | Versioning::from_str(v).map_err(|_| E::custom("not a valid version"))
| ^^^^^^^^ variant or associated item not found in `Versioning`
|
note: if you're trying to build a new `versions::Versioning` consider using one of the following associated functions:
versions::Versioning::new
versions::Versioning::deserialize_pretty
--> /home/runner/.cargo/git/checkouts/rs-versions-0f453f115a4484a6/7802574/src/lib.rs:1355:5
|
1355 | pub fn new(s: &str) -> Option<Versioning> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
...
1461 | / pub fn deserialize_pretty<'de, D>(deserializer: D) -> Result<Versioning, D::Error>
1462 | | where
1463 | | D: Deserializer<'de>,
| |_____________________________^
= help: items from traits can only be used if the trait is in scope
help: trait `FromStr` which provides `from_str` is implemented but not in scope; perhaps you want to import it
|
1 + use std::str::FromStr;
|
help: there is an associated function `from` with a similar name
|
297 | Versioning::from(v).map_err(|_| E::custom("not a valid version"))
| ~~~~
Loading