This commit is contained in:
Sammy Khamis 2024-01-29 15:01:14 -10:00
Родитель 7b32ce2b4b
Коммит b9adb61a23
3 изменённых файлов: 9 добавлений и 1 удалений

Просмотреть файл

@ -9,3 +9,7 @@ error[E0308]: mismatched types
= note: expected struct `String`
found enum `Result<String, ExternalError>`
= note: this error originates in the attribute macro `handle_error` (in Nightly builds, run with -Z macro-backtrace for more info)
help: consider using `Result::expect` to unwrap the `Result<String, ExternalError>` value, panicking if the value is a `Result::Err`
|
39 | #[handle_error(Error)].expect("REASON")
| +++++++++++++++++

Просмотреть файл

@ -9,3 +9,7 @@ error[E0308]: mismatched types
= note: expected enum `std::result::Result<String, ExternalError>`
found enum `std::result::Result<_, OtherExternalError>`
= note: this error originates in the attribute macro `handle_error` (in Nightly builds, run with -Z macro-backtrace for more info)
help: use the `?` operator to extract the `std::result::Result<_, OtherExternalError>` value, propagating a `Result::Err` value to the caller
|
50 | #[handle_error(Error)]?
| +

Просмотреть файл

@ -7,7 +7,7 @@
# supported and used in CI.
[toolchain]
channel = "1.74.0"
channel = "1.75.0"
targets = [
"aarch64-linux-android",
"armv7-linux-androideabi",