serde: Small code style change

This commit is contained in:
Jonas Platte 2020-12-24 02:49:55 +01:00
parent 0ae5786c6b
commit 25d283fa81
No known key found for this signature in database
GPG Key ID: CC154DE0E30B7C67

View File

@ -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`.