Skip to content

Commit 06cc2de

Browse files
committed
examples: Use edition = 2018
1 parent 936c8d5 commit 06cc2de

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

examples/basic/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
name = "example"
33
version = "0.0.1"
44
authors = ["Example User <[email protected]>"]
5+
edition = "2018"
56

67
[dependencies]
78
civet = "0.12.0-alpha.5"

examples/basic/src/main.rs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,7 @@
1-
extern crate civet;
2-
extern crate conduit;
3-
extern crate conduit_router;
4-
5-
use std::sync::mpsc::channel;
6-
71
use civet::{Config, Server};
82
use conduit::{Body, HttpResult, RequestExt, Response};
93
use conduit_router::{RequestParams, RouteBuilder};
4+
use std::sync::mpsc::channel;
105

116
fn name(req: &mut dyn RequestExt) -> HttpResult {
127
let name = req.params().find("name").unwrap();

0 commit comments

Comments
 (0)