summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2014-09-04 12:19:05 -0400
committerJesse Luehrs <doy@tozt.net>2014-09-04 12:19:05 -0400
commit035df81f5716f08d48438287b93c4a57b927b81e (patch)
tree4014c1783bb2aa1ee94067ffe3968463f1ed297b /src
parent803f228c91a25a193c356004f7f7e9923ce7ac5c (diff)
downloadrust-irc-035df81f5716f08d48438287b93c4a57b927b81e.tar.gz
rust-irc-035df81f5716f08d48438287b93c4a57b927b81e.zip
no reason for these extra & here
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);
},
}