Skip to content

Commit

Permalink
Fix clippy's needless_borrow
Browse files Browse the repository at this point in the history
  • Loading branch information
sergree committed Dec 16, 2022
1 parent dd58f8b commit d86ec95
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/view.rs
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ fn format_datetime(filter_name: &str, value: &Value, pattern: &str) -> TeraResul
Utc,
);
let formatted = format!("{}", datetime.format(pattern));
Ok(to_value(&formatted).unwrap())
Ok(to_value(formatted).unwrap())
}

fn human_datetime(value: &Value, _: &HashMap<String, Value>) -> TeraResult<Value> {
Expand All @@ -85,7 +85,7 @@ fn render_welcome_markdown(value: &Value, _: &HashMap<String, Value>) -> TeraRes
},
],
);
Ok(to_value(&rendered).unwrap())
Ok(to_value(rendered).unwrap())
}

fn key_extra_info(value: &Value, _: &HashMap<String, Value>) -> TeraResult<Value> {
Expand Down

0 comments on commit d86ec95

Please sign in to comment.