Closed Mazwak closed 2 years ago
Forgot some logs.
error[E0532]: expected tuple struct or tuple variant, found function `Ok`
--> src\build\convert\adoc.rs:373:17
|
373 | Ok(name) => name.trim(),
| ^^ not a tuple struct or tuple variant
|
help: consider importing one of these items instead
|
5 | use serde::__private::Ok;
|
5 | use std::result::Result::Ok;
|
5 | use core::result::Result::Ok;
OMG, it was broken! Fixed it, thank you <3
rustc is still confused with 'Ok'.
I replaced all occurences with core::result::Result::Ok, and it compiled. It seems to work fine also.
I fixed it by not importing Ok
from anyhow
. Then Rust is smart enough to find the corresponding Result
:) I wonder if anyhow::Ok
is nonsense.
Also I need to figure out why it didn't happen on my mac.
I tried to use adbook, but it does not install.
I’m using rust 1.57.0.
I also cloned the repo, but it fails too.
There are many errors, but it’s just a few repeated :
A problem with clap. It just needs the « derive » feature in cargo.toml.
A confusion for the compiler between the various « Ok ».