summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/client.rs6
-rw-r--r--src/message.rs12
2 files changed, 9 insertions, 9 deletions
diff --git a/src/client.rs b/src/client.rs
index 94d29ea..544283b 100644
--- a/src/client.rs
+++ b/src/client.rs
@@ -83,9 +83,9 @@ impl ClientBuilder {
)
);
- let hostname = match &self.hostname {
- &Some(ref host) => host.clone(),
- &None => {
+ let hostname = match self.hostname {
+ Some(ref host) => host.clone(),
+ None => {
// XXX get the name of the local end of the connection
"localhost".to_string()
},
diff --git a/src/message.rs b/src/message.rs
index d259993..bcbc226 100644
--- a/src/message.rs
+++ b/src/message.rs
@@ -44,16 +44,16 @@ impl Message {
}
pub fn write_protocol_string<W: Writer> (&self, w: &mut W) {
- match &self.from {
- &Some(ref f) => { write!(w, ":{} ", f); },
- &None => {},
+ match self.from {
+ Some(ref f) => { write!(w, ":{} ", f); },
+ None => {},
}
- match &self.message_type {
- &CommandMessage(ref c) => {
+ match self.message_type {
+ CommandMessage(ref c) => {
write!(w, "{}", c);
},
- &ReplyMessage(ref r) => {
+ ReplyMessage(ref r) => {
write!(w, "{}", r);
},
}