From 3070e429451d2abe55352fca45779b1e4f317bf8 Mon Sep 17 00:00:00 2001 From: Blizzard Finnegan Date: Mon, 19 Jun 2023 14:19:09 -0400 Subject: [PATCH] Remember to trim string to remove whitespace --- src/device.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/device.rs b/src/device.rs index 076aaf8..8c117d3 100755 --- a/src/device.rs +++ b/src/device.rs @@ -357,7 +357,7 @@ impl Device{ if !line.contains(':') { continue; } let (section,value) = line.split_once(':').unwrap(); if section.contains(SERIAL_HEADER){ - self.serial = value.replace("\"",""); + self.serial = value.trim().replace("\"",""); } } },