[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:
parent
f175d3db17
commit
663bb7f6c0
2 changed files with 7 additions and 7 deletions
|
@ -38,8 +38,8 @@ impl DatePathCompiler {
|
|||
|
||||
pub fn new(accuracy: Accuracy, format: Format) -> DatePathCompiler {
|
||||
DatePathCompiler {
|
||||
accuracy : accuracy,
|
||||
format : format,
|
||||
accuracy,
|
||||
format,
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -44,10 +44,10 @@ pub trait EntryDate {
|
|||
|
||||
}
|
||||
|
||||
const DATE_HEADER_LOCATION : &'static str = "datetime.value";
|
||||
const DATE_RANGE_START_HEADER_LOCATION : &'static str = "datetime.range.start";
|
||||
const DATE_RANGE_END_HEADER_LOCATION : &'static str = "datetime.range.end";
|
||||
const DATE_FMT : &'static str = "%Y-%m-%dT%H:%M:%S";
|
||||
const DATE_HEADER_LOCATION : &str = "datetime.value";
|
||||
const DATE_RANGE_START_HEADER_LOCATION : &str = "datetime.range.start";
|
||||
const DATE_RANGE_END_HEADER_LOCATION : &str = "datetime.range.end";
|
||||
const DATE_FMT : &str = "%Y-%m-%dT%H:%M:%S";
|
||||
|
||||
impl EntryDate for Entry {
|
||||
|
||||
|
@ -114,7 +114,7 @@ impl EntryDate for Entry {
|
|||
/// header in an inconsistent state.
|
||||
///
|
||||
fn delete_date_range(&mut self) -> Result<()> {
|
||||
let _ = self
|
||||
self
|
||||
.get_header_mut()
|
||||
.delete(&DATE_RANGE_START_HEADER_LOCATION)
|
||||
.map(|_| ())
|
||||
|
|
Loading…
Reference in a new issue