Skip to content

Why do you assert! if the thread is panicking in your Drop implementation? #106

@jymchng

Description

@jymchng

https://github.com/stouset/secrets/blob/master/src/secret.rs#L215

For the Drop implementation of Secret<T> (linked above), why do you assert if the thread is panicking when the target is not on Windows and munlock was successful?

My purpose is to understand and learn from you.

Thank you.

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