mirror of
https://github.com/telemt/telemt.git
synced 2026-10-29 03:57:15 +03:00
Rustfmt
This commit is contained in:
@@ -14,7 +14,7 @@ use std::os::unix::fs::MetadataExt;
|
||||
#[cfg(unix)]
|
||||
use nix::dir::Dir;
|
||||
#[cfg(unix)]
|
||||
use nix::fcntl::{openat, OFlag};
|
||||
use nix::fcntl::{OFlag, openat};
|
||||
#[cfg(unix)]
|
||||
use nix::sys::stat::Mode;
|
||||
|
||||
|
||||
@@ -124,7 +124,15 @@ fn load_static_directory(
|
||||
let relative = path.strip_prefix(root).map_err(|_| {
|
||||
ProxyError::Config("WEB static path escaped its configured root".to_string())
|
||||
})?;
|
||||
load_static_file(file, &metadata, relative, &path, assets, total_bytes, limits)?;
|
||||
load_static_file(
|
||||
file,
|
||||
&metadata,
|
||||
relative,
|
||||
&path,
|
||||
assets,
|
||||
total_bytes,
|
||||
limits,
|
||||
)?;
|
||||
}
|
||||
Ok(())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user