Generalize some test code for multiple architectures (#49)

* Run rustfmt with current stable

Signed-off-by: mulhern <amulhern@redhat.com>

* Add try_into() call to convert size

On some architectures, off_t is i32.

Signed-off-by: mulhern <amulhern@redhat.com>

* Change signature of create_backing_file

Adapt caller's signatures. No signatures other than those of the direct
callers need to be adapted.

Signed-off-by: mulhern <amulhern@redhat.com>

Signed-off-by: mulhern <amulhern@redhat.com>
This commit is contained in:
mulkieran 2022-10-10 03:53:48 -04:00 • committed by GitHub
commit 2f5763ff71
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 8 deletions