Remember to trim string to remove whitespace
All checks were successful
Basic Cargo Checks / docker-check (push) Successful in 1m47s
Basic Cargo Checks / docker-build (push) Successful in 2m2s

This commit is contained in:
Blizzard Finnegan 2023-06-19 14:19:09 -04:00
parent 9a7700dee4
commit 3070e42945
Signed by: blizzardfinnegan
GPG key ID: 61C1E13067E0018E

View file

@ -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("\"","");
}
}
},