1
0
mirror of https://github.com/fafhrd91/actix-web synced 2025-08-31 08:57:00 +02:00

update tests for stable compiler

This commit is contained in:
Nikolay Kim
2018-03-06 07:56:43 -08:00
parent 7eb310f8ce
commit 526753ee88
5 changed files with 24 additions and 2 deletions

View File

@@ -29,6 +29,7 @@ header! {
/// use actix_web::httpcodes::HttpOk;
/// use actix_web::header::{AcceptLanguage, LanguageTag, qitem};
///
/// # fn main() {
/// let mut builder = HttpOk.build();
/// let mut langtag: LanguageTag = Default::default();
/// langtag.language = Some("en".to_owned());
@@ -38,6 +39,7 @@ header! {
/// qitem(langtag),
/// ])
/// );
/// # }
/// ```
///
/// ```rust