Skip rustfmt on to_filtered.

https://github.com/rust-lang-nursery/rustfmt/issues/1262
This commit is contained in:
Ms2ger 2017-01-03 15:05:34 +01:00
parent 01114ebcf8
commit b76613a389

View file

@ -172,6 +172,7 @@ impl Response {
/// Convert to a filtered response, of type `filter_type`.
/// Do not use with type Error or Default
#[cfg_attr(rustfmt, rustfmt_skip)]
pub fn to_filtered(self, filter_type: ResponseType) -> Response {
match filter_type {
ResponseType::Default | ResponseType::Error(..) => panic!(),