Skip to content

Commit 82e7b8e

Browse files
committed
Fix example && MSRV build error
1 parent a17cd42 commit 82e7b8e

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

examples/minifb-demo/src/main.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,8 @@ fn main() -> Result<(), Box<dyn Error>> {
9090

9191
chart
9292
.configure_mesh()
93-
.line_style_1(&GREEN.mix(0.2))
94-
.line_style_2(&TRANSPARENT)
93+
.bold_line_style(&GREEN.mix(0.2))
94+
.light_line_style(&TRANSPARENT)
9595
.draw()?;
9696

9797
chart.draw_series(data.iter().zip(data.iter().skip(1)).map(

src/coord/ranged.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ impl KeyPointWeight {
4646
/// Check if this key point weight setting allows light point
4747
pub fn allow_light_points(&self) -> bool {
4848
match self {
49-
Self::Bold => false,
50-
Self::Any => true,
49+
KeyPointWeight::Bold => false,
50+
KeyPointWeight::Any => true,
5151
}
5252
}
5353
}

0 commit comments

Comments
 (0)