Skip to content

Commit 5ce15c5

Browse files
authored
RUST-826 Take ownership of self in ObjectId::to_hex (#259)
1 parent 1eba93e commit 5ce15c5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/oid.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,8 +167,8 @@ impl ObjectId {
167167
self.id
168168
}
169169

170-
/// Convert the objectId to hex representation.
171-
pub fn to_hex(&self) -> String {
170+
/// Convert this [`ObjectId`] to its hex string representation.
171+
pub fn to_hex(self) -> String {
172172
hex::encode(self.id)
173173
}
174174

0 commit comments

Comments
 (0)