You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried to integrate garde in our project. But I got this error:
= help: the trait `std::fmt::Display` is not implemented for `std::option::Option<i32>`
= note: in format strings you may be able to use `{:?}` (or {:#?} for pretty-print) instead
note: required by a bound in `garde::rules::range::apply`
--> /home/developer/registry/src/index.crates.io-6f17d22bba15001f/garde-0.12.0/src/rules/range.rs:19:26
|
19 | pub fn apply<T: Bounds + Display>(v: &T, (min, max): (&T::Size, &T::Size)) -> Result<(), Error> {
| ^^^^^^^ required by this bound in `apply`
= note: this error originates in the derive macro `Validate` (in Nightly builds, run with -Z macro-backtrace for more info)
The garde is #[garde(range(min = 1))] on a field with Option<i32> type.
The text was updated successfully, but these errors were encountered:
I tried to integrate garde in our project. But I got this error:
The garde is
#[garde(range(min = 1))]
on a field withOption<i32>
type.The text was updated successfully, but these errors were encountered: