Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Is the zero instance member still required? #37

@coriolinus

Description

@coriolinus

counter-rs/src/lib.rs

Lines 293 to 294 in 9e217dc

// necessary for `Index::index` since we cannot declare generic `static` variables.
zero: N,

That code was added in #9 (see discussion) and has never sat quite right. Can we work around it now? Leak exactly one zero item for each N? Bypass it some other way?

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