From 8d42ad9822e7e4b9e595bb2bd587a5da0db8ce9a Mon Sep 17 00:00:00 2001 From: James Ravenscroft Date: Thu, 25 Dec 2014 18:33:49 +0000 Subject: Changed unwrap_or to unwrap because we want the program to fail instead of use emptystring if ident can't be unwrapped --- src/ident.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/ident.rs') diff --git a/src/ident.rs b/src/ident.rs index 3089af4..19756ca 100644 --- a/src/ident.rs +++ b/src/ident.rs @@ -16,9 +16,9 @@ impl Ident { None => return None }; Some(Ident { - nickname: c.at(1).unwrap_or("").into_string(), - user: c.at(2).unwrap_or("").into_string(), - host: c.at(3).unwrap_or("").into_string() + nickname: c.at(1).unwrap().into_string(), + user: c.at(2).unwrap().into_string(), + host: c.at(3).unwrap().into_string() }) } } -- cgit v1.2.3