~matthiasbeyer/imag

c88f66dbb57369c6b5d56c3491754d719774b078 — Matthias Beyer a month ago 09446b2
Remove redundant clone() call

Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2 files changed, 2 insertions(+), 2 deletions(-)

M bin/domain/imag-timetrack/src/shell.rs
M bin/domain/imag-timetrack/src/stop.rs
M bin/domain/imag-timetrack/src/shell.rs => bin/domain/imag-timetrack/src/shell.rs +1 -1
@@ 84,7 84,7 @@ pub fn shell(rt: &Runtime) -> Result<()> {
        .get_timetrackings()?
        .filter_ok(|e| filter.filter(e))
        .and_then_ok(|mut elem| {
            elem.set_end_datetime(stop.clone())?;
            elem.set_end_datetime(stop)?;
            debug!("Setting end time worked: {:?}", elem);
            rt.report_touched(elem.get_location()).map_err(Error::from)
        })

M bin/domain/imag-timetrack/src/stop.rs => bin/domain/imag-timetrack/src/stop.rs +1 -1
@@ 75,7 75,7 @@ pub fn stop(rt: &Runtime) -> Result<()> {
        // for each of these timetrackings, end them
        // for each result, print the backtrace (if any)
        .and_then_ok(|mut elem| {
            elem.set_end_datetime(stop_time.clone())?;
            elem.set_end_datetime(stop_time)?;
            debug!("Setting end time worked: {:?}", elem);
            rt.report_touched(elem.get_location()).map_err(Error::from)
        })