Update fs.rs

This commit is contained in:
Kat 2018-10-30 16:23:27 -07:00 committed by GitHub
parent f2df1836ef
commit e40dd23fea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -351,7 +351,7 @@ impl<C: StaticFileConfig> Responder for NamedFile<C> {
if let Some(current_encoding) = self.encoding {
resp.content_encoding(current_encoding);
}
let reader = ChunkedReadFile {
let reader = ChunkedReadFile {
size: self.md.len(),
offset: 0,
cpu_pool: self.cpu_pool.unwrap_or_else(|| req.cpu_pool().clone()),