This is just nit picking.
This commit is contained in:
@@ -85,6 +85,7 @@ fn encode(user: User) -> UserRow {
|
|||||||
|
|
||||||
#[cfg(test)]
|
#[cfg(test)]
|
||||||
mod tests {
|
mod tests {
|
||||||
|
use chrono::round;
|
||||||
use uuid::Uuid;
|
use uuid::Uuid;
|
||||||
|
|
||||||
use crate::database::Constraint;
|
use crate::database::Constraint;
|
||||||
@@ -121,6 +122,7 @@ mod tests {
|
|||||||
#[test]
|
#[test]
|
||||||
fn round_trips_through_rows() {
|
fn round_trips_through_rows() {
|
||||||
let user = decode(row()).unwrap();
|
let user = decode(row()).unwrap();
|
||||||
assert_eq!(decode(encode(user.clone())).unwrap(), user);
|
let round_trip = decode(encode(user.clone())).unwrap();
|
||||||
|
assert_eq!(round_trip, user);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user