Skip to content

thread main panicked at called Option::unwrap() ... github.com-1ecc6299db9ec823/tree_magic_mini-3.0.3 #378

@spital

Description

@spital

Thanks for reporting a bug! Please include all of the following:

(1) A description of the issue. A screenshot is often helpful too.

thread 'main' panicked at 'called Option::unwrap() on a None value', ..../.cargo/registry/src/github.com-1ecc6299db9ec823/tree_magic_mini-3.0.3/src/fdo_magic/builtin/init.rs:26:34
note: run with RUST_BACKTRACE=1 environment variable to display a backtrace

or

'files::tests::test_null_bytes_are_binary' panicked at 'called Option::unwrap() on a None value', ..../.cargo/registry/src/github.com-1ecc6299db9ec823/tree_magic_mini-3.0.3/src/fdo_magic/builtin/init.rs:26:34

(2) A copy of what you're diffing. If you're diffing files, include
the before and after files. If you're using difftastic with a VCS
repository (e.g. git), include the URL and commit hash.

anything, even same files

(3) The version of difftastic you're using (see difft --version) and
your operating system.

0.35 local build or master local build or downloaded and unpacked latest v0.36.1

No idea what might be the problem, rustc 1.63.0 (Fedora 1.63.0-1.fc35)

cargo generate-lockfile; cargo clean; cargo test
# test files::tests::test_null_bytes_are_binary ... FAILED and next 2 as well

Workaround: tree_magic_mini = "2.0.0" in Cargo.toml (not 3.0.0, 3.0.1, 3.0.2, 3.0.3)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions