-
-
Notifications
You must be signed in to change notification settings - Fork 11
Open
Labels
bugSomething isn't workingSomething isn't workingdocumentationImprovements or additions to documentationImprovements or additions to documentation
Milestone
Description
Tests are failing to compile with the latest upstream and release v1.0.0
Noticed the issue while updating the ArchLinux AUR packages, it happens on both the latest upstream with unlocked cargo fetch and with the release sources with cargo fetch --locked, compiled with cargo build --frozen --release --all-features, and tests run with cargo test --frozen --all-features.
running 2 tests
test src/error.rs - error::ErrorKind::error (line 51) ... FAILED
test src/error.rs - error::ErrorKind::error_from (line 63) ... FAILED
failures:
---- src/error.rs - error::ErrorKind::error (line 51) stdout ----
error[E0433]: failed to resolve: use of undeclared type `ErrorKind`
--> src/error.rs:52:12
|
3 | return Err(ErrorKind::DeviceNotFound.error());
| ^^^^^^^^^ use of undeclared type `ErrorKind`
|
help: consider importing one of these enums
|
2 + use std::io::ErrorKind;
|
2 + use bmputil::error::ErrorKind;
|
2 + use clap::error::ErrorKind;
|
error: aborting due to 1 previous error
For more information about this error, try `rustc --explain E0433`.
Couldn't compile the test.
---- src/error.rs - error::ErrorKind::error_from (line 63) stdout ----
error[E0433]: failed to resolve: use of undeclared type `ErrorKind`
--> src/error.rs:65:25
|
4 | operation().map_err(|e| ErrorKind::DeviceNotFound.error_from(e))?;
| ^^^^^^^^^ use of undeclared type `ErrorKind`
|
help: consider importing one of these enums
|
2 + use std::io::ErrorKind;
|
2 + use bmputil::error::ErrorKind;
|
2 + use clap::error::ErrorKind;
|
error[E0599]: no method named `map_err` found for struct `futures_io::Error` in the current scope
--> src/error.rs:65:13
|
4 | operation().map_err(|e| ErrorKind::DeviceNotFound.error_from(e))?;
| ^^^^^^^ method not found in `futures_io::Error`
error: aborting due to 2 previous errors
Some errors have detailed explanations: E0433, E0599.
For more information about an error, try `rustc --explain E0433`.
Couldn't compile the test.
failures:
src/error.rs - error::ErrorKind::error (line 51)
src/error.rs - error::ErrorKind::error_from (line 63)
test result: FAILED. 0 passed; 2 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.12s
error: doctest failed, to rerun pass `--doc`
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingdocumentationImprovements or additions to documentationImprovements or additions to documentation