Update to rust 2018 edition

This commit is contained in:
Sven-Hendrik Haase 2018-12-10 16:38:41 +01:00
parent db536a9889
commit ead1bc899f
2 changed files with 2 additions and 10 deletions

View File

@ -8,6 +8,7 @@ license = "MIT"
readme = "README.md"
keywords = ["serve", "http-server", "static-files", "http", "server"]
categories = ["command-line-utilities", "command-line-interface", "network-programming", "web-programming::http-server"]
edition = "2018"
[badges]
travis-ci = { repository = "svenstaro/miniserve", branch = "master" }

View File

@ -1,16 +1,7 @@
extern crate actix;
extern crate actix_web;
extern crate base64;
extern crate htmlescape;
extern crate percent_encoding;
extern crate simplelog;
extern crate yansi;
#[macro_use]
extern crate clap;
use actix_web::http::header;
use actix_web::middleware::{Middleware, Response};
use actix_web::{fs, middleware, server, App, HttpMessage, HttpRequest, HttpResponse, Result};
use clap::{crate_authors, crate_description, crate_name, crate_version};
use htmlescape::encode_minimal as escape_html_entity;
use percent_encoding::{utf8_percent_encode, DEFAULT_ENCODE_SET};
use simplelog::{Config, LevelFilter, TermLogger};