Semicolons #65

Closed
opened 2017-03-06 22:44:31 -06:00 by dtolnay · 0 comments
dtolnay commented 2017-03-06 22:44:31 -06:00 (Migrated from github.com)

It may be too late for such a change to make sense but typically "const" items are followed by a semicolon, not comma.

Semicolon would be more consistent with lazy_static as well.

bitflags! {
    flags Flags: u32 {
        const A = 0b00000001;
        const B = 0b00000010;
    }
}

const C: u32 = 0b00000100;
const D: u32 = 0b00001000;

lazy_static! {
    static ref E: u32 = 0b00010000;
    static ref F: u32 = 0b00100000;
}
It may be too late for such a change to make sense but typically "const" items are followed by a semicolon, not comma. Semicolon would be more consistent with lazy_static as well. ```rust bitflags! { flags Flags: u32 { const A = 0b00000001; const B = 0b00000010; } } const C: u32 = 0b00000100; const D: u32 = 0b00001000; lazy_static! { static ref E: u32 = 0b00010000; static ref F: u32 = 0b00100000; } ```
Sign in to join this conversation.
No labels
bug
good first issue
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
gh-bitflags/bitflags#65
No description provided.