From 192b970436b4ce967c4e951fbd60c57be01dae1c Mon Sep 17 00:00:00 2001 From: Oscar Wallberg Date: Sat, 4 Jul 2026 03:15:20 +0200 Subject: [PATCH] chore: apply formatting --- src/integration_tests.rs | 3 ++- src/schema/store.rs | 9 +++++---- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/src/integration_tests.rs b/src/integration_tests.rs index b29c707..bb21071 100644 --- a/src/integration_tests.rs +++ b/src/integration_tests.rs @@ -466,7 +466,8 @@ fn definition_jumps_from_a_data_key_to_the_schema() { } }), )); - // The file schema auto-loads because it sits in the document's directory. Satisfy it. + // The file schema auto-loads because it sits in the document's directory. + // Satisfy it. let fetch = rx.try_recv().expect("a schema fetch was requested"); server.handle_fetch(FetchResult::Ok { url: fetch.url, diff --git a/src/schema/store.rs b/src/schema/store.rs index 3e51290..1c99df2 100644 --- a/src/schema/store.rs +++ b/src/schema/store.rs @@ -70,8 +70,8 @@ pub struct SchemaStore { workspace_roots: Vec, /// Where remote schemas are cached on disk, so a loaded schema's source /// can be re-read for features that need its text (go-to-definition). - /// `None` disables that recovery for remote schemas, while local ones still - /// resolve to their own file. + /// `None` disables that recovery for remote schemas, while local ones + /// still resolve to their own file. cache_dir: Option, policy: FetchPolicy, fetch_tx: Sender, @@ -261,8 +261,9 @@ impl SchemaStore { fn enqueue(&mut self, url: String, doc_uri: String, allow_network: bool) { self.waiting.entry(url.clone()).or_default().insert(doc_uri); if self.pending.contains(&url) { - // A load is already in flight, so remember a download request and it - // can escalate once an in-flight cache-only probe misses. + // A load is already in flight, so remember a download request and + // it can escalate once an in-flight cache-only probe + // misses. if allow_network { self.want_network.insert(url); }