Fix: unnecessary parentheses around if condition

This commit is contained in:
Matthias Beyer 2015-11-27 16:50:54 +01:00
parent 930a7ecc3f
commit 3ed431ad5f

View file

@ -26,7 +26,7 @@ impl<'a> FileHeaderParser<'a> for JsonHeaderParser<'a> {
fn read(&self, string: Option<String>)
-> Result<FileHeaderData, ParserError>
{
if (string.is_some()) {
if string.is_some() {
let s = string.unwrap();
debug!("Deserializing: {}", s);
let fromstr : R<Value> = from_str(&s[..]);