mirror of
https://github.com/G2-Games/minidisc-cli.git
synced 2025-04-19 19:52:53 -05:00
8 lines
247 B
Rust
8 lines
247 B
Rust
use std::error::Error;
|
|
|
|
pub fn check_result(result: Vec<u8>, expected: &[u8]) -> Result<(), Box<dyn Error>> {
|
|
match result.as_slice().eq(expected) {
|
|
true => Ok(()),
|
|
false => Err("Response was not as expected!".into()),
|
|
}
|
|
}
|