mirror of
https://github.com/actix/actix-web.git
synced 2024-12-19 14:49:01 +00:00
Fix docs.rs build
This commit is contained in:
parent
4797298706
commit
1ad8ba2604
2 changed files with 11 additions and 5 deletions
|
@ -1,5 +1,10 @@
|
|||
# Changes
|
||||
|
||||
## [0.6.13] - 2018-06-xx
|
||||
|
||||
* Fix docs.rs build
|
||||
|
||||
|
||||
## [0.6.12] - 2018-06-08
|
||||
|
||||
### Added
|
||||
|
|
11
src/lib.rs
11
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",
|
||||
|
|
Loading…
Reference in a new issue