+
Skip to content

unwrap is not that safe ... #39

Open
@jrouaix

Description

@jrouaix

Hello,

it seems that an unwrap considered safe, is panicking.

let path = e.path().strip_prefix(self.ignore.path()).unwrap();

thread '<unnamed>' panicked at /home/..../index.crates.io-6f17d22bba15001f/globwalk-0.9.1/src/lib.rs:381:78:
called `Result::unwrap()` on an `Err` value: StripPrefixError(())

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

      点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载