message: Implement AsRef<str> for Addr
diff: @@ -35,6 +35,13 @@ impl fmt::Display for Addr {
  }
  }
  +impl AsRef<str> for Addr {
  + #[inline]
  + fn as_ref(&self) -> &str {
  + &self.0
  + }
  +}
  +
  /// Implement `Addr == &str`
  impl PartialEq<&str> for Addr {
  fn eq(&self, rhs: &&str) -> bool {
  @@ -227,6 +234,12 @@ mod tests {
  assert_eq!(addr.to_string(), "cos934gh9034hg04g0h134");
  }
  + #[test]
  + fn addr_implements_as_ref_for_str() {
  + let addr = Addr::unchecked("literal-string");
  + assert_eq!(addr.as_ref(), "literal-string");
  + }
  +
  #[test]
  fn addr_implements_partial_eq_with_str() {
  let addr = Addr::unchecked("cos934gh9034hg04g0h134");
  