MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / hex_encode

Function hex_encode

atomic-cli/src/commands/git/bootstrap.rs:598–600  ·  view source on GitHub ↗

Lowercase hex encoding for error messages.

(bytes: &[u8])

Source from the content-addressed store, hash-verified

596
597/// Lowercase hex encoding for error messages.
598fn hex_encode(bytes: &[u8]) -> String {
599 bytes.iter().map(|byte| format!("{byte:02x}")).collect()
600}

Callers

nothing calls this directly

Calls 2

collectMethod · 0.45
iterMethod · 0.45

Tested by

no test coverage detected