Skip to content

SecretVec's try_newfunction forces a size of 1 #115

@itaifish

Description

@itaifish

https://github.com/stouset/secrets/blob/master/src/secret_vec.rs#L197

I think the fix is as simple as letting try_new take in a length, similar to how new does. I assume this is an implementation mistake, as the docs for try_new say it has the same signature as new.

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