Implement the render send of integer literals.
This commit is contained in:
@@ -151,6 +151,11 @@ impl CompareContextElement for serde_json::Value {
|
||||
None => (),
|
||||
Some(other_string) => return self.as_str().map_or(false, |s| s == other_string),
|
||||
}
|
||||
// Handle numeric literals
|
||||
match other.to_any().downcast_ref::<u64>() {
|
||||
None => (),
|
||||
Some(other_num) => return self.as_u64().map_or(false, |n| n == *other_num),
|
||||
}
|
||||
false
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user