This repository has been archived by the owner on Aug 26, 2024. It is now read-only.
Update Rust crate octocrab to 0.39.0 #19
Open
GitHub Actions / clippy
failed
Jul 31, 2024 in 0s
clippy
2 errors
Details
Results
Message level | Amount |
---|---|
Internal compiler error | 0 |
Error | 2 |
Warning | 0 |
Note | 0 |
Help | 0 |
Versions
- rustc 1.82.0-nightly (f8060d282 2024-07-30)
- cargo 1.82.0-nightly (b5d44db1d 2024-07-26)
- clippy 0.1.82 (f8060d2 2024-07-30)
Annotations
Check failure on line 104 in src/main.rs
github-actions / clippy
`std::option::Option<url::Url>` doesn't implement `std::fmt::Display`
error[E0599]: `std::option::Option<url::Url>` doesn't implement `std::fmt::Display`
--> src/main.rs:104:47
|
104 | html_url: repository.html_url.to_string(),
| ^^^^^^^^^ `std::option::Option<url::Url>` cannot be formatted with the default formatter
|
= note: the following trait bounds were not satisfied:
`std::option::Option<url::Url>: std::fmt::Display`
which is required by `std::option::Option<url::Url>: std::string::ToString`
note: the method `to_string` exists on the type `url::Url`
--> /rustc/f8060d282d42770fadd73905e3eefb85660d3278/library/alloc/src/string.rs:2544:5
help: consider using `Option::expect` to unwrap the `url::Url` value, panicking if the value is an `Option::None`
|
104 | html_url: repository.html_url.expect("REASON").to_string(),
| +++++++++++++++++
Check failure on line 99 in src/main.rs
github-actions / clippy
mismatched types
error[E0308]: mismatched types
--> src/main.rs:99:25
|
99 | forked: repository.fork,
| ^^^^^^^^^^^^^^^ expected `bool`, found `Option<bool>`
|
= note: expected type `bool`
found enum `std::option::Option<bool>`
help: consider using `Option::expect` to unwrap the `std::option::Option<bool>` value, panicking if the value is an `Option::None`
|
99 | forked: repository.fork.expect("REASON"),
| +++++++++++++++++
Loading