From 09cba55dc88b05afe3910cda9a582b9f59b5ca8a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=94=D0=B0=D0=BC=D1=98=D0=B0=D0=BD=20=D0=93=D0=B5=D0=BE?= =?UTF-8?q?=D1=80=D0=B3=D0=B8=D0=B5=D0=B2=D1=81=D0=BA=D0=B8?= Date: Thu, 6 Dec 2018 20:08:26 +0100 Subject: [PATCH] use rust language edition 2018 (introduced in 1.31) --- Cargo.toml | 1 + src/web.rs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index d8de961..8ad9872 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -5,6 +5,7 @@ authors = ["Damjan Georgievski "] license = "MIT" readme = "README.md" homepage = "https://github.com/gdamjan/http-server-rs" +edition = "2018" [dependencies] actix-web = "0.7" diff --git a/src/web.rs b/src/web.rs index 5d5eaec..e4cd9c4 100644 --- a/src/web.rs +++ b/src/web.rs @@ -4,7 +4,7 @@ use futures::Stream; use percent_encoding::{utf8_percent_encode, DEFAULT_ENCODE_SET}; use htmlescape::encode_minimal as escape_html_entity; -use channel; +use crate::channel; use std::fmt::Write; use std::path::PathBuf;