From 2063c8c0de14a1e4cd4e416410d20de5bc2ea124 Mon Sep 17 00:00:00 2001 From: Lann Martin Date: Mon, 7 Sep 2026 19:33:58 -0400 Subject: [PATCH] Visor: drop the unused MetaScope::Device variant CI builds the wasm target with -D warnings, and nothing in the visor edits the device map yet, so the variant was dead code. The WIT and the kernel keep all three scopes. --- visor/src/kernel.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/visor/src/kernel.rs b/visor/src/kernel.rs index fe2dcf76..be875dbd 100644 --- a/visor/src/kernel.rs +++ b/visor/src/kernel.rs @@ -257,17 +257,17 @@ pub(crate) async fn reroll_word() -> Result { } /// Which map `meta`/`set_meta` reads or replaces (internal.wit `meta-scope`). +/// The `device` scope exists in the contract but nothing in the visor edits +/// it yet, so it has no variant here. #[derive(Clone, PartialEq, Debug)] pub(crate) enum MetaScope { User, - Device, App(String), } fn meta_scope(scope: MetaScope) -> api::device::MetaScope { match scope { MetaScope::User => api::device::MetaScope::User, - MetaScope::Device => api::device::MetaScope::Device, MetaScope::App(id) => api::device::MetaScope::App(id), } }