~matthiasbeyer/imag

ref: 2a81ad4dc2f0d659bd344a663da1d901f8dcccd9 imag/lib/entry/libimagentryutil d---------
Remove main() in doctest

Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Pull changes from https://github.com/flip1995/imag clippy_fix

This pulls in the clippy fixes from Phil. From the request-pull:

-----8<-----
    I finally got to fixing all of the Clippy warnings in the imag codebase.
    `cargo test` passes, `cargo clippy` doesn't produce any warnings
    or errors.

    Some important notes:
      - I didn't pay attention to the line length of the changes, so it may
        have happened that some lines are now longer than 100 chars
      - Except two commits the commit messages are formatted as follows:
        * The first tag shows if the changes in the commit were
          automatically applied by `cargo fix --clippy -Zunstable-options`.
          Commits that were automatically applied may require closer review,
          since I didn't check those by hand and the Clippy fix feature is
          still unstable.
        * The other tags specify the subcrate that is affected by the
          commit. I created one commit for each subcrate, even when only one
          file (most of the time the `main.rs` file) was changed.
      - I created one commit, where I replace usages of `r#try!` with the
        `?` operator, since `try!` is now officially deprecated.
      - I created one commit, where I just allow Clippy lints. Either because
        the fix would require much more work or knowledge of the codebase or
        because it was a FP.

    This was pretty much work, but it helped detecting a few bugs in Clippy,
    where I was already able to open 3 or 4 PRs. So win-win I guess.

    [...] we got a net LoC decrease.
----->8-----
d377a999 — flip1995 2 years ago
[No-auto] lib/entry/util: Fix Clippy warnings

Signed-off-by: flip1995 <hello@philkrones.com>
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Update all dependencies

This patch updates all dependencies but not "nom".

Done with `cargo upgrade --all` and manual editing.

Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Merge branch 'update-toml-dependencies'
Update toml-query to 0.9.0

Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Update dependency: toml: 0.4 -> 0.5

Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Merge branch 'error-context' into master
Add more context in error messages

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

Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Fix: If the field is not available, return false

The function is for checking whether a flag is set. If the flag is not
available, the flag is obviously not set.

Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Add Is::remove_isflag() for removing header flags

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

Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Merge branch 'forbid-unsafe'

With this merge, there is no longer unsafe code in the imag repository.

Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Forbid unsafe code in all crates
Update version strings

...for the next release, which will be imag 0.10.0!

Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Merge branch 'prepare-0.9.0'

This merge marks the release 0.9.0 of the imag distribution.

Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Update dependencies from git versions to proper versions.

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

I'm so happy to finally be able to merge this patchset. After four days
of work, we finally convert the whole codebase from error_chain error
handling to failure.

Dependencies are now imported from "master" or even "failure" branches,
which will result in dependencies breaking the imag build as soon as the
"failure" branches vanish or the master breaks on the dependencies, but
we do it anyways until we are in release-shape.

Thanks goes to Kai for emotional support during the last weekend while
developing this patchset.

Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
libimagentryutil: Move from error-chain to failure

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