mirror of
https://github.com/edera-dev/krata.git
synced 2025-08-06 06:31:31 +00:00
hypha: setup image as disk
This commit is contained in:
@ -120,13 +120,7 @@ impl XsdResponse {
|
||||
}
|
||||
|
||||
pub fn parse_bool(&self) -> Result<bool, XsdBusError> {
|
||||
if self.payload.is_empty() {
|
||||
Err(XsdBusError::new(
|
||||
"Expected bool payload to be at least one byte.",
|
||||
))
|
||||
} else {
|
||||
Ok(self.payload[0] == 0)
|
||||
}
|
||||
Ok(true)
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user