mirror of
https://github.com/ibm-s390-linux/s390-tools.git
synced 2026-08-05 02:14:52 +00:00
pvattest: tests: Implement TODO
Instead of blindly casting the values to u32 use try_into().unwrap(). Signed-off-by: Marc Hartmayer <marc@linux.ibm.com> Reviewed-by: Steffen Eiden <seiden@linux.ibm.com> Signed-off-by: Steffen Eiden <seiden@linux.ibm.com>
This commit is contained in:
committed by
Steffen Eiden
parent
5b8fdc2bec
commit
ad129057b5
@@ -623,9 +623,12 @@ mod test {
|
||||
measurement: usize,
|
||||
additional: usize,
|
||||
) {
|
||||
// TODO as 32 checks
|
||||
let ctx_write = ExchangeFormatRequest::new(arcb, measurement as u32, additional as u32)
|
||||
.expect("exchange fmt creation");
|
||||
let ctx_write = ExchangeFormatRequest::new(
|
||||
arcb,
|
||||
measurement.try_into().unwrap(),
|
||||
additional.try_into().unwrap(),
|
||||
)
|
||||
.expect("exchange fmt creation");
|
||||
|
||||
// let mut out = create_file(path).unwrap();
|
||||
let mut out = vec![];
|
||||
|
||||
Reference in New Issue
Block a user