Weird Uuid::default()
implementation
#530
Labels
tracked-in-jira
Ticket filed in Mongo's Jira system
Uuid::default()
implementation
#530
The current
Default
implementation forUuid
returnsUuid::new()
which returns a random UUID v4.This is different from
uuid::Uuid::default()
which returns the nil UUID, which seems like a more reasonable default. I would normally expect thatT::default() == T::default()
.I think
Uuid::default()
should be changed to matchuuid::Uuid
and return a nil UUID.The text was updated successfully, but these errors were encountered: