-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(header): make test_module of header! optional
Closes #490
- Loading branch information
1 parent
92ee51a
commit a5ce9c5
Showing
2 changed files
with
66 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#![deny(warnings)] | ||
|
||
#[macro_use] | ||
// TODO: only import header!, blocked by https://github.com/rust-lang/rust/issues/25003 | ||
extern crate hyper; | ||
|
||
// A header in the form of `X-Foo: some random string` | ||
header! { | ||
(Foo, "X-Foo") => [String] | ||
} | ||
|
||
fn main() { | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters