Skip to content

Commit 9e42bbc

Browse files
committed
style(fmt): normalize after round-2 lint fixes
`cargo fmt --all` cleanup for the three files round-2 touched but didn't run through rustfmt afterwards: - crates/holograph/src/navigator.rs (W10 added a cfg-gated import) - crates/lance-graph-contract/src/orchestration_mode.rs (round-2 added `use std::cmp::Reverse` for the sort_by_key replacement) - crates/lance-graph-planner/src/strategy/gremlin_parse.rs (collapsible_match → match-guard pattern, multi-line `if` guards) Verified: `cargo fmt --all --check` exits 0.
1 parent fe04e72 commit 9e42bbc

3 files changed

Lines changed: 5 additions & 6 deletions

File tree

crates/holograph/src/navigator.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,9 @@
5252
5353
use std::sync::Arc;
5454

55-
use crate::bitpack::{BitpackedVector, VECTOR_BITS, VectorRef};
5655
#[cfg(feature = "datafusion-storage")]
5756
use crate::bitpack::VectorSlice;
57+
use crate::bitpack::{BitpackedVector, VECTOR_BITS, VectorRef};
5858
use crate::epiphany::TWO_SIGMA;
5959
use crate::hamming::{
6060
Belichtung, StackedPopcount, hamming_distance_ref, hamming_distance_scalar,

crates/lance-graph-contract/src/orchestration_mode.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,9 @@
4141
// modulation override path (TD-ORCH-1). Currently only `ThinkingStyle`
4242
// is consumed; the modulation hook is wired in `OrchestrationBridge`
4343
// but not yet routed through this module.
44-
use std::cmp::Reverse;
4544
#[allow(unused_imports)]
4645
use crate::thinking::{FieldModulation, ThinkingStyle};
46+
use std::cmp::Reverse;
4747

4848
// ═══════════════════════════════════════════════════════════════════════════
4949
// INFERENCE STAGES — the atoms of reasoning

crates/lance-graph-planner/src/strategy/gremlin_parse.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -624,10 +624,9 @@ fn parse_gremlin_steps(source: &str) -> Result<Vec<GremlinStep>, PlanError> {
624624
// collapsible_match (Rust 1.95): match-guard form collapses
625625
// the inner `if let Some(GremlinStep::Order(asc))` into the
626626
// outer match arm.
627-
"by"
628-
if args.len() >= 2
629-
&& args[1].to_lowercase().contains("desc")
630-
&& matches!(steps.last(), Some(GremlinStep::Order(_))) =>
627+
"by" if args.len() >= 2
628+
&& args[1].to_lowercase().contains("desc")
629+
&& matches!(steps.last(), Some(GremlinStep::Order(_))) =>
631630
{
632631
if let Some(GremlinStep::Order(asc)) = steps.last_mut() {
633632
*asc = false;

0 commit comments

Comments
 (0)