From 59b661846fe2e57772421ec97b9edd050e177253 Mon Sep 17 00:00:00 2001 From: Jannes <86556266+JannesBonk@users.noreply.github.com> Date: Wed, 5 Nov 2025 12:30:43 +0200 Subject: [PATCH] Fix Rust compiler error Latest Rust releases throws "cannot assign twice to immutable variable" when compiling main.rs. This commit fixes this error. --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 2c73d9c2..1d62d4ca 100644 --- a/src/main.rs +++ b/src/main.rs @@ -94,7 +94,7 @@ fn main() -> Result<()> { let mut os = match args.connector { Some(conn) => { - let inventory = Inventory::scan(); + let mut inventory = Inventory::scan(); inventory .builder()