mirror of https://github.com/aya-rs/aya
aya-log: Use `None` instead of wildcard in `Format` impls
The `Format` implementations for various types were using a wildcard `_` to match the `None` case on `Option<DisplayHint>`. This is incorrect as it would also match any `Some(...)` variants that were not explicitly handled, leading to unexpected behavior. This commit changes the wildcard `_` to an explicit `None` match to ensure that only the `None` case is handled, making the matching more explicit and correct. Signed-off-by: Xiaobo Liu <cppcoffee@gmail.com>reviewable/pr1293/r1
parent
727dfcd7ee
commit
cab559b9d9
Loading…
Reference in New Issue