For cli option with custom types, impl FromStr
with FromStr::Err
set to ()
won't work
#5360
Open
2 tasks done
Labels
C-bug
Category: Updating dependencies
Please complete the following tasks
Rust Version
rustc 1.76.0 (07dca489a 2024-02-04)
Clap Version
4.5.1
Minimal reproducible code
Steps to reproduce the bug with the above code
With the above code, run
cargo build
Actual Behaviour
Expected Behaviour
Build without issues
Additional Context
Related issues:
Derive requires field types to impl
Clone
#4286From this issue, I found you can fix it by
impl From<String> for Foo
.Derive: specifying invalid struct field type fails with Epic error message #4994
From this one, I found that you can also fix it by changing the
()
type to other types as described in this comment:Debug Output
The text was updated successfully, but these errors were encountered: