diff --git a/Cargo.toml b/Cargo.toml index 4ab03dc..6fc72be 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "websession" -version = "0.8.0" +version = "0.8.1" authors = ["Jeff Olhoeft ", "Ben Stern "] description = "Web Session Support for Rust" license = "MIT/Apache-2.0" diff --git a/src/connectionsignature.rs b/src/connectionsignature.rs index 051654e..175f708 100644 --- a/src/connectionsignature.rs +++ b/src/connectionsignature.rs @@ -3,12 +3,19 @@ use sessionpolicy::SessionPolicy; use token::Token; +use std::fmt; #[derive(Debug, Clone, Hash, PartialEq, Eq)] pub struct ConnectionSignature { pub token: Token, } +impl fmt::Display for ConnectionSignature { + fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { + self.token.fmt(f) + } +} + impl ConnectionSignature { pub fn new(secret: &str) -> ConnectionSignature { ConnectionSignature {