serde: Small code style change
This commit is contained in:
parent
0ae5786c6b
commit
25d283fa81
@ -28,7 +28,7 @@ pub use strings::{
|
||||
|
||||
/// Check whether a value is equal to its default value.
|
||||
pub fn is_default<T: Default + PartialEq>(val: &T) -> bool {
|
||||
val == &T::default()
|
||||
*val == T::default()
|
||||
}
|
||||
|
||||
/// Simply returns `true`.
|
||||
|
Loading…
x
Reference in New Issue
Block a user