Remove unneeded deref() call

This commit is contained in:
Matthias Beyer 2016-04-21 13:19:37 +02:00
parent 169d835e22
commit e0988c5f76

View file

@ -11,7 +11,6 @@
/// This helps us greatly with deduplication of URLs.
///
use std::ops::Deref;
use std::ops::DerefMut;
use std::collections::BTreeMap;
@ -60,8 +59,7 @@ impl<'a> Link<'a> {
/// Get a link Url object from a FileLockEntry, ignore errors.
fn get_link_uri_from_filelockentry(file: &FileLockEntry<'a>) -> Option<Url> {
file.deref()
.get_header()
file.get_header()
.read("imag.content.uri")
.ok()
.and_then(|opt| {
@ -74,7 +72,6 @@ impl<'a> Link<'a> {
pub fn get_url(&self) -> Result<Option<Url>> {
let opt = self.link
.deref()
.get_header()
.read("imag.content.uri");