[Auto] lib/entry/datetime: Fix Clippy warnings

Signed-off-by: flip1995 <hello@philkrones.com>
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
This commit is contained in:
flip1995 2019-08-27 10:49:07 +02:00 committed by Matthias Beyer
parent f175d3db17
commit 663bb7f6c0
2 changed files with 7 additions and 7 deletions

View file

@ -38,8 +38,8 @@ impl DatePathCompiler {
pub fn new(accuracy: Accuracy, format: Format) -> DatePathCompiler { pub fn new(accuracy: Accuracy, format: Format) -> DatePathCompiler {
DatePathCompiler { DatePathCompiler {
accuracy : accuracy, accuracy,
format : format, format,
} }
} }

View file

@ -44,10 +44,10 @@ pub trait EntryDate {
} }
const DATE_HEADER_LOCATION : &'static str = "datetime.value"; const DATE_HEADER_LOCATION : &str = "datetime.value";
const DATE_RANGE_START_HEADER_LOCATION : &'static str = "datetime.range.start"; const DATE_RANGE_START_HEADER_LOCATION : &str = "datetime.range.start";
const DATE_RANGE_END_HEADER_LOCATION : &'static str = "datetime.range.end"; const DATE_RANGE_END_HEADER_LOCATION : &str = "datetime.range.end";
const DATE_FMT : &'static str = "%Y-%m-%dT%H:%M:%S"; const DATE_FMT : &str = "%Y-%m-%dT%H:%M:%S";
impl EntryDate for Entry { impl EntryDate for Entry {
@ -114,7 +114,7 @@ impl EntryDate for Entry {
/// header in an inconsistent state. /// header in an inconsistent state.
/// ///
fn delete_date_range(&mut self) -> Result<()> { fn delete_date_range(&mut self) -> Result<()> {
let _ = self self
.get_header_mut() .get_header_mut()
.delete(&DATE_RANGE_START_HEADER_LOCATION) .delete(&DATE_RANGE_START_HEADER_LOCATION)
.map(|_| ()) .map(|_| ())