From ab9c4f99b8bbe7a6d8ef69b37cf0e4ce8667710d Mon Sep 17 00:00:00 2001 From: Hanno Braun Date: Sat, 8 Nov 2014 22:51:28 +0100 Subject: [PATCH] Make Connection usable Connection's only field was private, making it impossible to construct a Connection. --- src/header/common/connection.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/header/common/connection.rs b/src/header/common/connection.rs index 049fede5..6e5b5205 100644 --- a/src/header/common/connection.rs +++ b/src/header/common/connection.rs @@ -5,7 +5,7 @@ use std::from_str::FromStr; /// The `Connection` header. #[deriving(Clone, PartialEq, Show)] -pub struct Connection(Vec); +pub struct Connection(pub Vec); /// Values that can be in the `Connection` header. #[deriving(Clone, PartialEq)]