Skip to content

Replace usage of static keyword with const #8

@genbattle

Description

@genbattle

This RFC was merged in recently, and today when I went to build nanovg I found that it wouldn't build with the following error:

/home/nick/.cargo/git/checkouts/nanovg-rs-84b890ac0c756c09/master/src/lib.rs:69:9: 69:15 error: no rules expected the token `static`
/home/nick/.cargo/git/checkouts/nanovg-rs-84b890ac0c756c09/master/src/lib.rs:69         static LEFT         = ffi::NVG_ALIGN_LEFT,
                                                                                        ^~~~~~
Could not compile `nanovg`.

Judging from the RFC, the solution is to replace this particular usage of static with const.

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