MCPcopy Create free account
hub / github.com/SeaQL/FireDBG.for.Rust / os_str_to_str

Function os_str_to_str

command/src/main.rs:1075–1077  ·  view source on GitHub ↗
(os_str: &OsStr)

Source from the content-addressed store, hash-verified

1073}
1074
1075fn os_str_to_str(os_str: &OsStr) -> &str {
1076 os_str.to_str().expect("Failed to convert OsStr to &str")
1077}
1078
1079fn cargo_bin() -> Result<String> {
1080 let res = if let Ok(cargo_home) = env::var("CARGO_HOME") {

Callers 1

path_file_nameFunction · 0.85

Calls 1

to_strMethod · 0.80

Tested by

no test coverage detected