From 1ad8ba2604dd00b32590fc6a4c508b8f693c4d60 Mon Sep 17 00:00:00 2001 From: Nikolay Kim Date: Mon, 11 Jun 2018 12:25:20 -0700 Subject: [PATCH] Fix docs.rs build --- CHANGES.md | 5 +++++ src/lib.rs | 11 ++++++----- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/CHANGES.md b/CHANGES.md index cfd5fc14a..4678add27 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,5 +1,10 @@ # Changes +## [0.6.13] - 2018-06-xx + +* Fix docs.rs build + + ## [0.6.12] - 2018-06-08 ### Added diff --git a/src/lib.rs b/src/lib.rs index 9912d4ada..0714f491b 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -6,15 +6,15 @@ //! # use std::thread; //! //! fn index(info: Path<(String, u32)>) -> String { -//! format!("Hello {}! id:{}", info.0, info.1) +//! format!("Hello {}! id:{}", info.0, info.1) //! } //! //! fn main() { //! # thread::spawn(|| { -//! server::new( -//! || App::new() -//! .resource("/{name}/{id}/index.html", |r| r.with(index))) -//! .bind("127.0.0.1:8080").unwrap() +//! server::new(|| { +//! App::new().resource("/{name}/{id}/index.html", |r| r.with(index)) +//! }).bind("127.0.0.1:8080") +//! .unwrap() //! .run(); //! # }); //! } @@ -77,6 +77,7 @@ //! #![cfg_attr(actix_nightly, feature( specialization, // for impl ErrorResponse for std::error::Error + extern_prelude, ))] #![cfg_attr( feature = "cargo-clippy",