Skip to content

Commit 8731ef1

Browse files
authored
Merge pull request #70 from dobrite/master
feat(Color): impl Default
2 parents 3970d15 + 8838de3 commit 8731ef1

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/rustbox.rs

+6
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,12 @@ impl Color {
105105
}
106106
}
107107

108+
impl Default for Color {
109+
fn default() -> Color {
110+
Color::Black
111+
}
112+
}
113+
108114
mod style {
109115
bitflags! {
110116
#[repr(C)]

0 commit comments

Comments
 (0)