mirror of
https://github.com/rust-vmm/vhost-device.git
synced 2026-01-10 07:12:12 +00:00
Change unwrap to expect
Signed-off-by: Fredrik Simonsson <fredrsim@axis.com>
This commit is contained in:
parent
165f5f6e82
commit
9115fabe5f
@ -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 {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user