File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -70,7 +70,7 @@ impl crate::DateTime {
70
70
71
71
/// Returns a [`DateTime`] which corresponds to the current date and time.
72
72
pub fn now ( ) -> DateTime {
73
- Self :: from_chrono ( Utc :: now ( ) )
73
+ Self :: from_system_time ( SystemTime :: now ( ) )
74
74
}
75
75
76
76
#[ cfg( not( feature = "chrono-0_4" ) ) ]
Original file line number Diff line number Diff line change @@ -163,7 +163,7 @@ impl ObjectId {
163
163
}
164
164
165
165
/// Returns the raw byte representation of an ObjectId.
166
- pub fn bytes ( & self ) -> [ u8 ; 12 ] {
166
+ pub const fn bytes ( & self ) -> [ u8 ; 12 ] {
167
167
self . id
168
168
}
169
169
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ pub enum Error {
14
14
/// A key could not be serialized to a BSON string.
15
15
InvalidDocumentKey ( Bson ) ,
16
16
17
- /// A general error that ocurred during serialization.
17
+ /// A general error that occurred during serialization.
18
18
/// See: https://docs.rs/serde/1.0.110/serde/ser/trait.Error.html#tymethod.custom
19
19
#[ non_exhaustive]
20
20
SerializationError {
You can’t perform that action at this time.
0 commit comments