mirror of https://github.com/Tim-Paik/neutauri.git
fix clippy
This commit is contained in:
parent
69531170b9
commit
a333c2a507
|
@ -143,7 +143,7 @@ pub(crate) fn dev(config_path: String) -> Result<()> {
|
||||||
.with_custom_protocol(PROTOCOL.to_string(), move |request| {
|
.with_custom_protocol(PROTOCOL.to_string(), move |request| {
|
||||||
let path = request.uri().path();
|
let path = request.uri().path();
|
||||||
let mut local_path = source.clone();
|
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 data = Vec::new();
|
||||||
let mut mime: String = "application/octet-stream".to_string();
|
let mut mime: String = "application/octet-stream".to_string();
|
||||||
match fs::File::open(&local_path) {
|
match fs::File::open(&local_path) {
|
||||||
|
|
Loading…
Reference in New Issue