~matthiasbeyer/imag

13561d6987587bfe5a729dda8f473dde175bb644 — Matthias Beyer 2 years ago 1b96686
Remove unnecessary to_string() calls

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

M bin/domain/imag-todo/src/lib.rs
M bin/domain/imag-todo/src/lib.rs => bin/domain/imag-todo/src/lib.rs +3 -3
@@ 418,9 418,9 @@ fn show(rt: &Runtime) -> Result<()> {
            let uuid     = entry.get_uuid().map_err(E::from)?.to_hyphenated().to_string();
            let status   = entry.get_status().map_err(E::from)?;
            let status   = status.as_str().to_string();
            let sched    = util::get_dt_str(entry.get_scheduled(), "Not scheduled")?.to_string();
            let hidden   = util::get_dt_str(entry.get_hidden(), "Not hidden")?.to_string();
            let due      = util::get_dt_str(entry.get_due(), "No due")?.to_string();
            let sched    = util::get_dt_str(entry.get_scheduled(), "Not scheduled")?;
            let hidden   = util::get_dt_str(entry.get_hidden(), "Not hidden")?;
            let due      = util::get_dt_str(entry.get_due(), "No due")?;
            let priority = entry.get_priority().map_err(E::from)?.map(|p| p.as_str().to_string()).unwrap_or("No prio".to_string());

            let text     = entry.get_content().to_owned();