Change unwrap to expect

Signed-off-by: Fredrik Simonsson <fredrsim@axis.com>
This commit is contained in:
Fredrik Simonsson 2025-05-15 17:22:32 +02:00 committed by Manos Pitsidianakis
parent 165f5f6e82
commit 9115fabe5f

View File

@ -71,7 +71,7 @@ impl TryFrom<args::ScmiArgs> for VuScmiConfig {
let mut split = d.split(',');
let name = split
.next()
.ok_or("String split failed with None")?
.expect("split should never return a completed itterator")
.to_owned();
let mut properties = vec![];
for s in split {