Skip to content

Commit

Permalink
Update toolchain
Browse files Browse the repository at this point in the history
  • Loading branch information
reinterpretcat committed Feb 9, 2024
1 parent 6ae3b8e commit 3d64099
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM rust:1.75-alpine AS Builder
FROM rust:1.76-alpine AS Builder

LABEL maintainer="Ilya Builuk <ilya.builuk@gmail.com>" \
org.opencontainers.image.title="A Vehicle Routing Problem solver CLI" \
Expand Down
2 changes: 1 addition & 1 deletion vrp-pragmatic/tests/generator/relations.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use std::sync::RwLock;

/// Generate relations.
pub fn generate_relations(
jobs: &Vec<Job>,
jobs: &[Job],
vehicles: &[VehicleType],
total_relations: Range<usize>,
jobs_per_relation: Range<usize>,
Expand Down
2 changes: 1 addition & 1 deletion vrp-pragmatic/tests/helpers/problem.rs
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ pub fn all_of_skills(skills: Vec<String>) -> JobSkills {
JobSkills { all_of: Some(skills), one_of: None, none_of: None }
}

fn convert_times(times: &Vec<(i32, i32)>) -> Option<Vec<Vec<String>>> {
fn convert_times(times: &[(i32, i32)]) -> Option<Vec<Vec<String>>> {
if times.is_empty() {
None
} else {
Expand Down
2 changes: 1 addition & 1 deletion vrp-pragmatic/tests/unit/format/problem/reader_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ fn assert_time_window(tw: &TimeWindow, expected: &(f64, f64)) {
assert_eq!(tw.end, expected.1);
}

fn assert_time_spans(tws: &Vec<TimeSpan>, expected: Vec<(f64, f64)>) {
fn assert_time_spans(tws: &[TimeSpan], expected: Vec<(f64, f64)>) {
assert_eq!(tws.len(), expected.len());
(0..tws.len()).for_each(|index| {
assert_time_window(&tws.get(index).and_then(|tw| tw.as_time_window()).unwrap(), expected.get(index).unwrap());
Expand Down

0 comments on commit 3d64099

Please sign in to comment.