Skip to content

Commit 695dc6d

Browse files
committed
fmt
1 parent 92aa897 commit 695dc6d

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

build.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
use actix_rt::spawn;
2+
use libflate::gzip;
23
use std::collections::hash_map::DefaultHasher;
34
use std::fs::File;
45
use std::hash::Hasher;
56
use std::io::Read;
67
use std::io::{BufRead, BufReader, Write};
78
use std::path::{Path, PathBuf};
8-
use libflate::gzip;
99

1010
#[actix_rt::main]
1111
async fn main() {
@@ -71,7 +71,10 @@ async fn process_input_file(path_out: &Path, original: File) {
7171
writeln!(outfile, "{}", line).unwrap();
7272
}
7373
}
74-
outfile.finish().as_result().expect("Unable to write compressed frontend asset");
74+
outfile
75+
.finish()
76+
.as_result()
77+
.expect("Unable to write compressed frontend asset");
7578
}
7679

7780
// Given a filename, creates a new unique filename based on the file contents

src/webserver/static_content.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
use crate::utils::static_filename;
22
use actix_web::{
3-
http::header::{CacheControl, CacheDirective, ETag, EntityTag, Header, IfNoneMatch, ContentEncoding},
3+
http::header::{
4+
CacheControl, CacheDirective, ContentEncoding, ETag, EntityTag, Header, IfNoneMatch,
5+
},
46
web, HttpRequest, HttpResponse, Resource,
57
};
68

0 commit comments

Comments
 (0)