ksud: clippy

This commit is contained in:
tiann 2023-02-06 09:16:15 +08:00
parent aa7a00b299
commit ad4d8e939e
No known key found for this signature in database
GPG Key ID: 6D3F65FFD9559C06

View File

@ -26,8 +26,14 @@ use zip_extensions::zip_extract_file_to_memory;
use std::os::unix::{prelude::PermissionsExt, process::CommandExt};
const INSTALLER_CONTENT: &str = include_str!("./installer.sh");
const INSTALL_MODULE_SCRIPT: &str =
concatcp!(INSTALLER_CONTENT, "\n", "install_module", "\n", "exit 0", "\n");
const INSTALL_MODULE_SCRIPT: &str = concatcp!(
INSTALLER_CONTENT,
"\n",
"install_module",
"\n",
"exit 0",
"\n"
);
fn exec_install_script(module_file: &str) -> Result<()> {
let realpath = std::fs::canonicalize(module_file)