Skip to content

Commit

Permalink
Regarding recent commits of the form ...
Browse files Browse the repository at this point in the history
```
-    context_raw.set_stroke_style(&"#ccc".into());
+    context_raw.set_stroke_style_str(&"#ccc");
```

latest version of rust 1.82.0 -- is rapidly changing
and now these errors are picked up in the documented
examples.
  • Loading branch information
martinfrances107 committed Oct 21, 2024
1 parent c54b5ae commit 5bbf974
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/src/graticule/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ where
/// // Graticule RUSTLANG
/// let graticule = generate_mls();
/// context_raw.begin_path();
/// context_raw.set_stroke_style_str(&"#ccc".into());
/// context_raw.set_stroke_style_str(&"#ccc");
/// path.object(&graticule);
/// context_raw.stroke();
/// ```
Expand Down
4 changes: 2 additions & 2 deletions lib/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@
//! .build();
//!
//! let mut path = pb.build(ortho);
//! context_raw.set_stroke_style_str(&"#333".into());
//! context_raw.set_stroke_style_str(&"#333");
//! context_raw.set_line_width(0.5);
//! path.object(&countries);
//! let path2d = path.context.result();
Expand All @@ -167,7 +167,7 @@
//! // Graticule
//! let graticule =
//! generate_mls();
//! context_raw.set_stroke_style_str(&"#ccc".into());
//! context_raw.set_stroke_style_str(&"#ccc");
//! path.object(&graticule);
//! let path2d = path.context.result();
//! context_raw.stroke_with_path(&path2d);
Expand Down

0 comments on commit 5bbf974

Please sign in to comment.