Skip to content

Clone unexpectedly doesn't clone contents #8

@nappa85

Description

@nappa85

Being the main struct internally an Arc<Inner>, when the user clones it's simply getting a new smart pointer to the same underlying data, that would be unexpected if paragoned to std HashMap.

Plus, in some examples, ShardMap is wrapped in an Arc, making it a double level of indirection without gainin nothing.

I think in Rust philosophy Arc should be user's duty and not hardcoded inside the struct.

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