Skip to content

Commit fda9862

Browse files
committed
Update dev-dep
1 parent e1f1a5c commit fda9862

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,6 @@ time = "0.1"
1515
filetime = "0.1"
1616

1717
[dev-dependencies]
18-
civet = "0.7"
18+
civet = "0.8"
1919
conduit-test = "0.7"
2020
tempdir = "0.3"

examples/simple-file-server.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@ use conduit_static::Static;
1010

1111
fn main() {
1212
let handler = Static::new(&env::current_dir().unwrap());
13-
let _a = Server::start(Config { port: 8888, threads: 50 }, handler);
13+
let mut cfg = Config::new();
14+
cfg.port(8888).threads(50);
15+
let _a = Server::start(cfg, handler);
1416
let (_tx, rx) = channel::<()>();
1517
rx.recv().unwrap();
1618
}

0 commit comments

Comments
 (0)