Why Nostr? What is Njump?
2023-03-14 15:15:37
in reply to

kojira on Nostr: use serde_json::Result; をいれるだけで the question mark operation (`?`) ...

use serde_json::Result;
をいれるだけで
the question mark operation (`?`) implicitly performs a conversion on the error value using the `From` trait
the following other types implement trait `FromResidual<R>`:
<std::result::Result<T, F> as FromResidual<Yeet<E>>>
<std::result::Result<T, F> as FromResidual<std::result::Result<Infallible, E>>>
required for `std::result::Result<bool, serde_json::Error>` to implement `FromResidual<std::result::Result<Infallible, std::io::Error>>`
になるんどす…
初心者過ぎて何もわからん…
Author Public Key
npub1k0jrarx8um0lyw3nmysn50539ky4k8p7gfgzgrsvn8d7lccx3d0s38dczd