Skip to content

Commit ce4bbb0

Browse files
josephlrrbradford
authored andcommitted
rustfmt: Run cargo fmt --all
This also gets rid of some warnings Signed-off-by: Joe Richey <joerichey@google.com>
1 parent e9a81f8 commit ce4bbb0

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

src/bzimage.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ pub fn load_kernel(f: &mut Read) -> Result<(u64), Error> {
201201

202202
let setup_bytes = setup_sects * 512; // Use to start reading the main image
203203

204-
let mut load_offset = u64::from(KERNEL_LOCATION);;
204+
let mut load_offset = u64::from(KERNEL_LOCATION);
205205

206206
f.seek(setup_bytes as u32)?;
207207

src/pe.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,5 +236,4 @@ mod tests {
236236
assert_eq!(a, fake_mem as u64 + 0x4000);
237237
assert_eq!(size, 110_592);
238238
}
239-
240239
}

0 commit comments

Comments
 (0)