MCPcopy Create free account
hub / github.com/bytecodealliance/wasmtime / parse_dirs

Function parse_dirs

src/common.rs:120–128  ·  view source on GitHub ↗
(s: &str)

Source from the content-addressed store, hash-verified

118}
119
120fn parse_dirs(s: &str) -> Result<(String, String)> {
121 let mut parts = s.split("::");
122 let host = parts.next().unwrap();
123 let guest = match parts.next() {
124 Some(guest) => guest,
125 None => host,
126 };
127 Ok((host.into(), guest.into()))
128}
129
130impl std::fmt::Display for RunCommon {
131 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {

Callers

nothing calls this directly

Calls 4

OkFunction · 0.85
splitMethod · 0.80
unwrapMethod · 0.45
nextMethod · 0.45

Tested by

no test coverage detected