aboutsummaryrefslogtreecommitdiff
path: root/src/ident.rs
diff options
context:
space:
mode:
authorTill Höppner2014-12-26 15:07:47 +0100
committerTill Höppner2014-12-26 15:07:47 +0100
commitd8c9a734419fdfb3ef54bba467f899e09533b3c6 (patch)
treeee18f2a6fa1def91fcaaae53ce708d60f2ad58ac /src/ident.rs
parent6ed12a0993d56330bb008adc86bfb5ebe4320583 (diff)
parent2ebcb68cd4c88891f42da1e5c1c29fefea947f23 (diff)
downloadirsc-d8c9a734419fdfb3ef54bba467f899e09533b3c6.tar.gz
irsc-d8c9a734419fdfb3ef54bba467f899e09533b3c6.tar.xz
irsc-d8c9a734419fdfb3ef54bba467f899e09533b3c6.zip
Merge pull request #1 from ravenscroftj/master
Fixed build for irsc
Diffstat (limited to 'src/ident.rs')
-rw-r--r--src/ident.rs7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/ident.rs b/src/ident.rs
index 069e186..6a01d12 100644
--- a/src/ident.rs
+++ b/src/ident.rs
@@ -1,4 +1,5 @@
use regex::Regex;
+use std::borrow::ToOwned;
static PATTERN: Regex = regex!(":(.*)!(.*)@(.*)");
@@ -16,9 +17,9 @@ impl Ident {
None => return None
};
Some(Ident {
- nickname: c.at(1).into_string(),
- user: c.at(2).into_string(),
- host: c.at(3).into_string()
+ nickname: c.at(1).unwrap().to_owned(),
+ user: c.at(2).unwrap().to_owned(),
+ host: c.at(3).unwrap().to_owned()
})
}
}