Skip to content
This repository was archived by the owner on Mar 7, 2021. It is now read-only.

Commit e82934d

Browse files
committed
Run cargo fmt on everything
1 parent 208c6fe commit e82934d

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

hello-world/src/lib.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
#![feature(alloc)]
33

44
extern crate alloc;
5-
use alloc::String;
65
use alloc::borrow::ToOwned;
6+
use alloc::String;
77

88
#[macro_use]
99
extern crate linux_kernel_module;
@@ -15,7 +15,9 @@ struct HelloWorldModule {
1515
impl linux_kernel_module::KernelModule for HelloWorldModule {
1616
fn init() -> linux_kernel_module::KernelResult<Self> {
1717
println!("Hello kernel module!");
18-
Ok(HelloWorldModule {message: "on the heap!".to_owned()})
18+
Ok(HelloWorldModule {
19+
message: "on the heap!".to_owned(),
20+
})
1921
}
2022
}
2123

src/filesystem.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ use core::marker;
44
use core::mem;
55

66
use bindings;
7-
use error;
87
use c_types;
8+
use error;
99

1010
pub struct FileSystemRegistration<T: FileSystem> {
1111
_phantom: marker::PhantomData<T>,

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ extern crate bitflags;
77

88
mod allocator;
99
pub mod bindings;
10+
mod c_types;
1011
mod error;
1112
pub mod filesystem;
1213
pub mod printk;
13-
mod c_types;
1414

1515
pub use alloc::format;
1616

0 commit comments

Comments
 (0)