You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
od.rs:564:8
|
564 | fn unwrap_or_else<F>(self, f: F) -> UnwrapOrElse<Self, F>
| -------------- the method is available for `Pin<Box<(dyn std::future::Future<Output = Result<Vec<Label>, hu
bcaps::Error>> + Send + 'static)>>` here
|
= help: items from traits can only be used if the trait is in scope
help: the following trait is implemented but not in scope; perhaps add a `use` for it:
|
2 | use futures_util::future::try_future::TryFutureExt;
|
error[E0599]: no method named `unwrap_or_else` found for struct `Pin<Box<(dyn std::future::Future<Output = Result<(), hu
bcaps::Error>> + Send + 'static)>>` in the current scope
--> ofborg/src/tasks/evaluate.rs:584:26
|
584 | l.remove(&label).unwrap_or_else(|e| {
| ^^^^^^^^^^^^^^ method not found in `Pin<Box<(dyn std::future::Future<Output = Result<(),
hubcaps::Error>> + Send + 'static)>>`
|
::: /home/artturin/.local/share/cargo/registry/src/github.com-1ecc6299db9ec823/futures-util-0.3.21/src/future/try_future/m
od.rs:564:8
|
564 | fn unwrap_or_else<F>(self, f: F) -> UnwrapOrElse<Self, F>
| -------------- the method is available for `Pin<Box<(dyn std::future::Future<Output = Result<(), hubcaps::E
rror>> + Send + 'static)>>` here
|
= help: items from traits can only be used if the trait is in scope
help: the following trait is implemented but not in scope; perhaps add a `use` for it:
|
2 | use futures_util::future::try_future::TryFutureExt;
|
error[E0277]: the `?` operator can only be applied to values that implement `Try`
--> ofborg/src/tasks/evaluate.rs:630:8
|
630 | if statuses
| ________^
631 | | .list(&sha)?
| |____________________^ the `?` operator cannot be applied to type `Pin<Box<dyn std::future::Future<Output = Result
<Vec<hubcaps::statuses::Status>, hubcaps::Error>> + Send>>`
|
= help: the trait `Try` is not implemented for `Pin<Box<dyn std::future::Future<Output = Result<Vec<hubcaps::statuse
s::Status>, hubcaps::Error>> + Send>>`
error[E0308]: mismatched types
--> ofborg/src/tasks/githubcommentfilter.rs:78:16
|
78 | if let Err(x) = pr {
| ^^^^^^ -- this expression has type `Pin<Box<dyn std::future::Future<Output = Result<hubcaps::pulls
::Pull, hubcaps::Error>> + Send>>`
| |
| expected struct `Pin`, found enum `Result`
|
= note: expected struct `Pin<Box<dyn std::future::Future<Output = Result<hubcaps::pulls::Pull, hubcaps::Error>> + Sen
d>>`
found enum `Result<_, _>`
error[E0599]: no method named `unwrap` found for struct `Pin<Box<dyn std::future::Future<Output = Result<hubcaps::pulls:
:Pull, hubcaps::Error>> + Send>>` in the current scope
--> ofborg/src/tasks/githubcommentfilter.rs:86:21
|
86 | let pr = pr.unwrap();
| ^^^^^^ method not found in `Pin<Box<dyn std::future::Future<Output = Result<hubcaps::pulls::Pul
l, hubcaps::Error>> + Send>>`
error[E0308]: mismatched types
--> ofborg/src/tasks/githubcommentposter.rs:90:17
|
89 | match check_create_attempt {
| -------------------- this expression has type `Pin<Box<dyn std::future::Future<Output = Result<Ch
eckRun, hubcaps::Error>> + Send>>`
90 | Ok(_) => info!("Successfully sent."),
| ^^^^^ expected struct `Pin`, found enum `Result`
|
= note: expected struct `Pin<Box<dyn std::future::Future<Output = Result<CheckRun, hubcaps::Error>> + Send>>`
found enum `Result<_, _>`
error[E0308]: mismatched types
--> ofborg/src/tasks/githubcommentposter.rs:91:17
|
89 | match check_create_attempt {
| -------------------- this expression has type `Pin<Box<dyn std::future::Future<Output = Result<Ch
eckRun, hubcaps::Error>> + Send>>`
90 | Ok(_) => info!("Successfully sent."),
91 | Err(err) => info!("Failed to send check {:?}", err),
| ^^^^^^^^ expected struct `Pin`, found enum `Result`
|
= note: expected struct `Pin<Box<dyn std::future::Future<Output = Result<CheckRun, hubcaps::Error>> + Send>>`
found enum `Result<_, _>`
The text was updated successfully, but these errors were encountered:
the fork is 404 commits behind https://github.com/softprops/hubcaps and many of the commits are already merged in hubcaps
https://github.com/grahamc/hubcaps
this is as far as i got
once i remove those 2 errors then
The text was updated successfully, but these errors were encountered: