summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorflip1995 <hello@philkrones.com>2019-08-27 10:48:08 +0200
committerMatthias Beyer <mail@beyermatthias.de>2019-08-28 18:18:40 +0200
commit7c1a8a542c19e92d4e89eb62e54f0f47fe88f3b0 (patch)
tree4aa5b112071f48f275e11e95c3969191efe44ff8
parente3657638574909ccf8ed1d02d2b582034cf287f0 (diff)
[Auto] lib/entry/annotation: Fix Clippy warnings
Signed-off-by: flip1995 <hello@philkrones.com> Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
-rw-r--r--lib/entry/libimagentryannotation/src/annotateable.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/entry/libimagentryannotation/src/annotateable.rs b/lib/entry/libimagentryannotation/src/annotateable.rs
index 2d91cfbc..2380cf0c 100644
--- a/lib/entry/libimagentryannotation/src/annotateable.rs
+++ b/lib/entry/libimagentryannotation/src/annotateable.rs
@@ -54,10 +54,10 @@ impl Annotateable for Entry {
store.retrieve(crate::module_path::new_id(ann_name.clone())?)
.and_then(|mut anno| {
{
- let _ = anno.set_isflag::<IsAnnotation>()?;
+ anno.set_isflag::<IsAnnotation>()?;
let _ = anno
.get_header_mut()
- .insert("annotation.name", Value::String(String::from(ann_name)))?;
+ .insert("annotation.name", Value::String(ann_name))?;
}
Ok(anno)
})
@@ -74,7 +74,7 @@ impl Annotateable for Entry {
// exist.
fn denotate<'a>(&mut self, store: &'a Store, ann_name: &str) -> Result<Option<FileLockEntry<'a>>> {
if let Some(mut annotation) = store.get(crate::module_path::new_id(ann_name)?)? {
- let _ = self.remove_link(&mut annotation)?;
+ self.remove_link(&mut annotation)?;
Ok(Some(annotation))
} else {
// error: annotation does not exist