refactor(header): add #[inline] to new header constructors

This commit is contained in:
Sean McArthur
2015-05-12 18:23:55 -07:00
parent 0be0f264af
commit 72e274c52a
2 changed files with 7 additions and 0 deletions

View File

@@ -73,11 +73,13 @@ header! {
impl Connection {
/// A constructor to easily create a `Connection: close` header.
#[inline]
pub fn close() -> Connection {
Connection(vec![ConnectionOption::Close])
}
/// A constructor to easily create a `Connection: keep-alive` header.
#[inline]
pub fn keep_alive() -> Connection {
Connection(vec![ConnectionOption::KeepAlive])
}