diff --git a/Cargo.toml b/Cargo.toml index 3f0b3ee..a81cec3 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -8,7 +8,7 @@ authors = [ "Martin Junghanns ", "Paul Horn ", ] -rust-version = "1.65" +rust-version = "1.70" repository = "https://github.com/neo4j-labs/graph" edition = "2021" license = "MIT" diff --git a/crates/app/src/runner.rs b/crates/app/src/runner.rs index 042a840..296c6c0 100644 --- a/crates/app/src/runner.rs +++ b/crates/app/src/runner.rs @@ -39,7 +39,7 @@ macro_rules! gen_runner { }; (__run_file_format_all: $algo_config:ty, $ev_type:ty) => { - fn run_( + fn run_( args: $crate::CommonArgs, config: $algo_config, ) -> ::kommandozeile::Result<()> @@ -58,7 +58,7 @@ macro_rules! gen_runner { }; (__run_file_format_edge_list: $algo_config:ty, $ev_type:ty) => { - fn run_( + fn run_( args: $crate::CommonArgs, config: $algo_config, ) -> ::kommandozeile::Result<()> diff --git a/crates/builder/Cargo.toml b/crates/builder/Cargo.toml index 3347a43..45eb97e 100644 --- a/crates/builder/Cargo.toml +++ b/crates/builder/Cargo.toml @@ -46,6 +46,14 @@ tokio.workspace = true force_fallback_impl = [] dotgraph = [] +[lints.rust] +unexpected_cfgs = { level = "warn", check-cfg = [ + 'cfg(has_new_uninit)', + 'cfg(has_maybe_uninit_write_slice)', + 'cfg(has_slice_partition_dedup)', + 'cfg(has_doc_cfg)', +] } + [[bench]] name = "edgelist" harness = false diff --git a/crates/builder/benches/topology.rs b/crates/builder/benches/topology.rs index 8614f28..dc8b7f6 100644 --- a/crates/builder/benches/topology.rs +++ b/crates/builder/benches/topology.rs @@ -134,7 +134,7 @@ fn bench_all_targets( Direction::Incoming => graph.in_neighbors(node), Direction::Undirected => unreachable!(), }; - black_box(neighbors); + black_box(neighbors.collect::>()); } }, criterion::BatchSize::SmallInput, diff --git a/crates/builder/src/input/edgelist.rs b/crates/builder/src/input/edgelist.rs index 7fba8b1..e675db4 100644 --- a/crates/builder/src/input/edgelist.rs +++ b/crates/builder/src/input/edgelist.rs @@ -158,7 +158,7 @@ where I: IntoIterator, { fn from(iter: EdgeWithValueIterator) -> Self { - EdgeList::new(iter.0.into_iter().map(|(s, t, v)| (s, t, v)).collect()) + EdgeList::new(iter.0.into_iter().collect()) } }