lanzatool: remove unused utils module

This commit is contained in:
Julian Stecklina 2022-12-28 23:50:57 +01:00
parent b762de9fec
commit f07618b64c
2 changed files with 0 additions and 12 deletions

View File

@ -4,7 +4,6 @@ mod generation;
mod install; mod install;
mod pe; mod pe;
mod signature; mod signature;
mod utils;
use anyhow::Result; use anyhow::Result;
use clap::Parser; use clap::Parser;

View File

@ -1,11 +0,0 @@
use std::path::Path;
// All Linux file paths should be convertable to strings
pub fn path_to_string(path: impl AsRef<Path>) -> String {
String::from(path.as_ref().to_str().unwrap_or_else(|| {
panic!(
"Failed to convert path '{}' to a string",
path.as_ref().display()
)
}))
}