From f0f8485fc72f28c40afbc8b1e4dd240e4d7c2cb4 Mon Sep 17 00:00:00 2001 From: Ms2ger Date: Tue, 8 Nov 2016 22:45:19 -0600 Subject: [PATCH] servo: Merge #14137 - Implement Debug for Response (from servo:debug-response); r=frewsxcv Source-Repo: https://github.com/servo/servo Source-Revision: a203a26c1235ab7a7bf821023abaec0a240d2079 --- servo/components/net_traits/response.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/servo/components/net_traits/response.rs b/servo/components/net_traits/response.rs index e9de8d83a580..92eee0e46693 100644 --- a/servo/components/net_traits/response.rs +++ b/servo/components/net_traits/response.rs @@ -25,7 +25,7 @@ pub enum ResponseType { } /// [Response termination reason](https://fetch.spec.whatwg.org/#concept-response-termination-reason) -#[derive(Clone, Copy, Deserialize, Serialize, HeapSizeOf)] +#[derive(Debug, Clone, Copy, Deserialize, Serialize, HeapSizeOf)] pub enum TerminationReason { EndUserAbort, Fatal, @@ -61,7 +61,7 @@ pub enum CacheState { } /// [Https state](https://fetch.spec.whatwg.org/#concept-response-https-state) -#[derive(Clone, Copy, HeapSizeOf, Deserialize, Serialize)] +#[derive(Debug, Clone, Copy, HeapSizeOf, Deserialize, Serialize)] pub enum HttpsState { None, Deprecated, @@ -75,7 +75,7 @@ pub enum ResponseMsg { } /// A [Response](https://fetch.spec.whatwg.org/#concept-response) as defined by the Fetch spec -#[derive(Clone, HeapSizeOf)] +#[derive(Debug, Clone, HeapSizeOf)] pub struct Response { pub response_type: ResponseType, pub termination_reason: Option,