~matthiasbeyer/imag

ref: 6bc08b60e6e3a99cc9a263713db33061d63dc964 imag/bin/domain/imag-calendar/src/util.rs -rw-r--r-- 6.5 KiB
Merge branch 'update-deps' into master

Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
handlebars: 2 -> 3

Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Merge branch 'replace-failure-with-anyhow'

Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Replace failure with anyhow in complete codebase

This patch was scripted with

    sed -i 's/use failure::Error/use anyhow::Error/' $(rg "use failure::Error" -l)
    sed -i 's/use failure::Fallible as /use anyhow::/' $(rg "use failure::Fallible" -l)
    sed -i 's/failure/anyhow/' $(rg "failure *=" -l)
    sed -i 's/format_err!/anyhow!/' $(rg "format_err!" -l)
    sed -i 's/use failure::ResultExt/use anyhow::Context/' $(rg "use failure::ResultExt" -l)
    sed -i 's/err_msg/anyhow!/' $(rg "use failure::err_msg" -l)
    sed -i 's/^anyhow\ *=.*$/anyhow = "1"/' $(rg "anyhow * =" -l)
    sed -i 's/^anyhow_derive.*//' $(rg "anyhow_derive" -l)
    sed -i 's/extern crate failure/extern crate anyhow/' $(rg "extern crate failure" -l)
    sed -i 's/.*extern crate anyhow_derive.*//' $(rg "anyhow_derive" -l)

Some manual changes were added as well, so this patch was not completely
scripted, but mostly.

Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Update copyright years to 2015-2020

Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Rewrite for less cluttered code

Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Bind value and simplify condition with it

Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Rewrite filter(...).next().is_some() with .any(...)

Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Rewrite closure for more structured and easy-to-read code

Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Rewrite filter_map() as simple filter()

Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Fix: Do not call exit(), but propagate error

Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Merge branch 'imag-calendar/init' into master
Implement show subcommand

Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Make helper type derive Debug

Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Add helper function to parse string with kairos

Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Enhance listing functionality with handlebars templating

Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Add basic listing functionality

Signed-off-by: Matthias Beyer <mail@beyermatthias.de>