fix clippy

This commit is contained in:
Tim-Paik 2022-11-28 19:49:11 +08:00
parent 69531170b9
commit a333c2a507
Signed by: Tim-Paik
GPG Key ID: DC36A050DB42566D
1 changed files with 1 additions and 1 deletions

View File

@ -143,7 +143,7 @@ pub(crate) fn dev(config_path: String) -> Result<()> {
.with_custom_protocol(PROTOCOL.to_string(), move |request| {
let path = request.uri().path();
let mut local_path = source.clone();
local_path.push(path.strip_prefix('/').unwrap_or(&path));
local_path.push(path.strip_prefix('/').unwrap_or(path));
let mut data = Vec::new();
let mut mime: String = "application/octet-stream".to_string();
match fs::File::open(&local_path) {