From 52df10eb1ac314dad32528889e85320915923d76 Mon Sep 17 00:00:00 2001 From: rfitzger Date: Thu, 5 Sep 2024 15:15:15 -0600 Subject: [PATCH] clippy --- .../default/turn_delays/turn_delay_access_model_engine.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rust/routee-compass-core/src/model/access/default/turn_delays/turn_delay_access_model_engine.rs b/rust/routee-compass-core/src/model/access/default/turn_delays/turn_delay_access_model_engine.rs index 5f2fadf5..7fe963fa 100644 --- a/rust/routee-compass-core/src/model/access/default/turn_delays/turn_delay_access_model_engine.rs +++ b/rust/routee-compass-core/src/model/access/default/turn_delays/turn_delay_access_model_engine.rs @@ -28,7 +28,7 @@ impl TurnDelayAccessModelEngine { let turn = Turn::from_angle(angle)?; let delay = table.get(&turn).ok_or_else(|| { let name = String::from("tabular discrete turn delay model"); - let error = format!("table missing entry for turn {}", turn.to_string()); + let error = format!("table missing entry for turn {}", turn); AccessModelError::RuntimeError { name, error } })?; Ok((*delay, time_unit))