diff options
Diffstat (limited to 'libimagentrylink')
-rw-r--r-- | libimagentrylink/src/external.rs | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/libimagentrylink/src/external.rs b/libimagentrylink/src/external.rs index a0b9a16e..01f6badb 100644 --- a/libimagentrylink/src/external.rs +++ b/libimagentrylink/src/external.rs @@ -54,11 +54,9 @@ impl<'a> Link<'a> { file.get_header() .read("imag.content.uri") .ok() - .and_then(|opt| { - match opt { - Some(Value::String(s)) => Url::parse(&s[..]).ok(), - _ => None - } + .and_then(|opt| match opt { + Some(Value::String(s)) => Url::parse(&s[..]).ok(), + _ => None }) } |