Skip to content

Commit fe047c5

Browse files
committed
chores: bump to edition 2024
Signed-off-by: Tristram Gräbener <tristram+git@tristramg.eu>
1 parent 5be5a04 commit fe047c5

7 files changed

Lines changed: 16 additions & 10 deletions

File tree

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "liblrs"
33
version = "0.3.0"
4-
edition = "2021"
4+
edition = "2024"
55
description = "Library to manipulate linear referencing systems"
66
license = "MIT"
77
homepage = "https://github.com/OpenRailAssociation/liblrs/"

python/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name = "liblrs_python"
33
description = "Python bindings for liblrs: a library to work with linear referencing systems"
44
version = "0.3.0"
5-
edition = "2021"
5+
edition = "2024"
66
license = "MIT"
77
repository = "https://github.com/OpenRailAssociation/liblrs/"
88

src/curves.rs

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
use geo::kernels::RobustKernel;
88
use geo::line_measures::{Densifiable, LengthMeasurable};
99
use geo::prelude::*;
10-
use geo::{coord, Line, LineString, Point, Rect};
11-
use num_traits::{float::Float, One, Zero};
10+
use geo::{Line, LineString, Point, Rect, coord};
11+
use num_traits::{One, Zero, float::Float};
1212
use thiserror::Error;
1313

1414
/// A [`Curve`] is the fundamental building block for an LRM.
@@ -841,9 +841,11 @@ mod tests {
841841
SphericalLineStringCurve::new(line_string![PARIS, REYKJAVIK, NEW_YORK], 1.);
842842

843843
let segment = Line::new(coord! {x: -70.78, y: 47.84}, coord! {x: 9.29, y: 54.83});
844-
assert!(paris_to_reykjavik_to_new_york
845-
.intersect_segment(segment)
846-
.is_some());
844+
assert!(
845+
paris_to_reykjavik_to_new_york
846+
.intersect_segment(segment)
847+
.is_some()
848+
);
847849
}
848850

849851
#[test]

src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
#[allow(clippy::all)]
33
#[allow(dead_code)]
44
#[allow(mismatched_lifetime_syntaxes)]
5+
#[allow(unsafe_op_in_unsafe_fn)]
56
#[rustfmt::skip]
67
mod lrs_generated;
78

src/lrs.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ use crate::lrm_scale::{
1717
Anchor, CurvePosition, LrmScale, LrmScaleError, LrmScaleMeasure, ScalePosition,
1818
};
1919
use crate::lrs_generated;
20-
use geo::{coord, point, LineString, Point};
20+
use geo::{LineString, Point, coord, point};
2121

2222
/// Used as handle to identify a [`LrmScale`] within a specific [`Lrs`].
2323
#[derive(Copy, Clone, Debug, Eq, Hash, PartialEq)]

src/osm_helpers.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,10 @@ pub fn sort_edges(edges: Vec<Edge>, traversal_ref: &str) -> Vec<(Edge, bool)> {
9898
} else {
9999
last_edge.0.target
100100
};
101-
println!("[WARN] on traversal {traversal_ref}, ignoring {ignored} edges out of {total}. Sorted from {} to {}", first.0, last.0);
101+
println!(
102+
"[WARN] on traversal {traversal_ref}, ignoring {ignored} edges out of {total}. Sorted from {} to {}",
103+
first.0, last.0
104+
);
102105
}
103106

104107
sorted

wasm/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "liblrs-wasm"
33
version = "0.3.0"
4-
edition = "2021"
4+
edition = "2024"
55

66
[lib]
77
crate-type = ["cdylib"]

0 commit comments

Comments
 (0)