to_hyphenated -> as_hyphenated

This commit is contained in:
Dustin J. Mitchell
2022-05-27 02:44:30 +00:00
parent 99dd74bef7
commit f9b19526f0

View File

@@ -101,7 +101,7 @@ pub unsafe extern "C" fn tc_uuid_to_buf(tcuuid: TCUuid, buf: *mut libc::c_char)
// SAFETY: // SAFETY:
// - tcuuid is a valid TCUuid (all byte patterns are valid) // - tcuuid is a valid TCUuid (all byte patterns are valid)
let uuid: Uuid = unsafe { TCUuid::val_from_arg(tcuuid) }; let uuid: Uuid = unsafe { TCUuid::val_from_arg(tcuuid) };
uuid.to_hyphenated().encode_lower(buf); uuid.as_hyphenated().encode_lower(buf);
} }
/// Return the hyphenated string representation of a TCUuid. The returned string /// Return the hyphenated string representation of a TCUuid. The returned string