Skip to content

Commit a33f74f

Browse files
committed
Update dependencies.
1 parent 12a35e0 commit a33f74f

File tree

10 files changed

+382
-226
lines changed

10 files changed

+382
-226
lines changed

Cargo.lock

Lines changed: 368 additions & 212 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "railmap"
3-
version = "0.1.17"
3+
version = "0.1.18"
44
authors = ["Martin Hoffmann <hn@nvnc.de>"]
55
edition = "2021"
66
rust-version = "1.65"
@@ -9,19 +9,19 @@ rust-version = "1.65"
99

1010
[dependencies]
1111
arc-swap = "1.7.1"
12-
cairo-rs = { version = "0.20", features = ["png", "svg", "v1_16"] }
12+
cairo-rs = { version = "0.21", features = ["png", "svg", "v1_16"] }
1313
clap = { version = "4.3.19", features = ["cargo", "derive"] }
1414
femtomap = { git = "https://github.com/partim/femtomap.git", features = [ "serde" ] }
1515
http-body-util = "0.1"
1616
hyper = { version = "1.2", features = ["server", "http1"] }
1717
hyper-util = { version = "0.1", features = ["tokio"] }
1818
kurbo = "0.11"
1919
lazy_static = "1.4"
20-
lru = "0.12"
20+
lru = "0.16"
2121
notify = "7"
2222
serde = { version = "1", features = ["derive"] }
2323
tokio = { version = "1.27", features = ["macros", "net", "rt-multi-thread"] }
24-
toml = "0.8"
24+
toml = "0.9"
2525

2626
[[bin]]
2727
name = "railmap"

src/railway/feature/area.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ impl Feature for AreaContour {
3232

3333
fn shape(
3434
&self, style: &Style, _canvas: &Canvas
35-
) -> AnyShape {
35+
) -> AnyShape<'_> {
3636
let color = style.track_color(&self.class);
3737
let outline = self.trace.outline(style);
3838

@@ -71,7 +71,7 @@ impl Feature for PlatformContour {
7171

7272
fn shape(
7373
&self, style: &Style, _canvas: &Canvas
74-
) -> AnyShape {
74+
) -> AnyShape<'_> {
7575
let color = style.track_color(&self.class);
7676
let outline = self.trace.outline(style);
7777

src/railway/feature/border.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ impl Feature for BorderContour {
101101

102102
fn shape(
103103
&self, style: &Style, _canvas: &Canvas
104-
) -> AnyShape {
104+
) -> AnyShape<'_> {
105105
let outline = self.trace.outline(style);
106106
if style.detail() < 3 {
107107
AnyShape::single_stage(move |style: &Style, canvas: &mut Canvas| {

src/railway/feature/dot.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ impl Feature for DotMarker {
148148

149149
fn shape(
150150
&self, style: &Style, _canvas: &Canvas
151-
) -> AnyShape {
151+
) -> AnyShape<'_> {
152152
DotShape {
153153
feature: self,
154154
center: self.position.resolve(style).0

src/railway/feature/guide.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ impl Feature for GuideContour {
5555

5656
fn shape(
5757
&self, style: &Style, _canvas: &Canvas
58-
) -> AnyShape {
58+
) -> AnyShape<'_> {
5959
GuideShape {
6060
contour: self, trace: self.trace.outline(style)
6161
}.into()

src/railway/feature/label.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ impl Feature for Label {
7272

7373
fn shape(
7474
&self, style: &Style, canvas: &Canvas
75-
) -> AnyShape {
75+
) -> AnyShape<'_> {
7676
let (point, angle) = self.position.resolve_label(style, self.on_path);
7777
let matrix = Matrix::identity().translate(point).rotate(angle);
7878
let layout = self.block.shape(Default::default(), style, canvas);

src/railway/feature/marker.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ impl Feature for StandardMarker {
150150

151151
fn shape(
152152
&self, _style: &Style, _canvas: &Canvas
153-
) -> AnyShape {
153+
) -> AnyShape<'_> {
154154
AnyShape::single_stage(|style: &Style, canvas: &mut Canvas| {
155155
self.render(style, canvas)
156156
})

src/railway/feature/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ pub trait Feature {
6767

6868
fn shape(
6969
&self, style: &Style, canvas: &Canvas
70-
) -> AnyShape;
70+
) -> AnyShape<'_>;
7171
}
7272

7373
//------------ Shape ---------------------------------------------------------

src/railway/feature/track.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ impl Feature for TrackContour {
294294

295295
fn shape(
296296
&self, style: &Style, _canvas: &Canvas
297-
) -> AnyShape {
297+
) -> AnyShape<'_> {
298298
/*
299299
if style.detail() <= 1 {
300300
AnyShape::from(
@@ -1654,7 +1654,7 @@ impl Feature for TrackCasing {
16541654

16551655
fn shape(
16561656
&self, style: &Style, _canvas: &Canvas
1657-
) -> AnyShape {
1657+
) -> AnyShape<'_> {
16581658
let line_width = if self.class.double() {
16591659
2.2 * style.measures().dt()
16601660
}

0 commit comments

Comments
 (0)