From d115fc5ed1f4b5b7d34c4c3a2c20d6a49a5d9db8 Mon Sep 17 00:00:00 2001 From: Mingwei Samuel Date: Thu, 12 Dec 2024 11:08:40 -0800 Subject: [PATCH] refactor: cleanup for stable CI testing --- hydroflow_lang/src/diagnostic.rs | 4 ++++ hydroflow_lang/src/graph/hydroflow_graph.rs | 7 +++++++ 2 files changed, 11 insertions(+) diff --git a/hydroflow_lang/src/diagnostic.rs b/hydroflow_lang/src/diagnostic.rs index 06dca5c69052..39468ba5ee87 100644 --- a/hydroflow_lang/src/diagnostic.rs +++ b/hydroflow_lang/src/diagnostic.rs @@ -204,6 +204,10 @@ impl From for SerdeSpan { .into(); } + #[cfg_attr( + not(nightly), + expect(clippy::diverging_sub_expression, reason = "conditional compilation") + )] break 'a "unknown".into(); }; diff --git a/hydroflow_lang/src/graph/hydroflow_graph.rs b/hydroflow_lang/src/graph/hydroflow_graph.rs index 9f964f02dd24..af45012a59ea 100644 --- a/hydroflow_lang/src/graph/hydroflow_graph.rs +++ b/hydroflow_lang/src/graph/hydroflow_graph.rs @@ -1027,6 +1027,13 @@ impl HydroflowGraph { ); } + #[cfg_attr( + not(nightly), + expect( + clippy::diverging_sub_expression, + reason = "conditional compilation" + ) + )] break 'a format!( "loc_nopath_{}_{}_{}_{}", op_span.start().line,