Skip to content

Commit 864d8af

Browse files
committed
rust: kernel: use feature individually
`rustfmt` (in its default config, at least) does not add a comma in the last feature of the list, which means diffs are bigger at times. In addition, this is how the standard library does it, and one may argue it allows for easier `grep`ing too. Link: #439 (comment). Indirectly-suggested-by: Benoit de Chezelles <[email protected]> Signed-off-by: Miguel Ojeda <[email protected]>
1 parent 499f1a0 commit 864d8af

File tree

1 file changed

+16
-18
lines changed

1 file changed

+16
-18
lines changed

rust/kernel/lib.rs

+16-18
Original file line numberDiff line numberDiff line change
@@ -12,24 +12,22 @@
1212
//! do so first instead of bypassing this crate.
1313
1414
#![no_std]
15-
#![feature(
16-
allocator_api,
17-
associated_type_defaults,
18-
concat_idents,
19-
const_fn_trait_bound,
20-
const_mut_refs,
21-
const_ptr_offset_from,
22-
const_refs_to_cell,
23-
const_trait_impl,
24-
doc_cfg,
25-
generic_associated_types,
26-
maybe_uninit_extra,
27-
ptr_metadata,
28-
receiver_trait,
29-
coerce_unsized,
30-
dispatch_from_dyn,
31-
unsize
32-
)]
15+
#![feature(allocator_api)]
16+
#![feature(associated_type_defaults)]
17+
#![feature(concat_idents)]
18+
#![feature(const_fn_trait_bound)]
19+
#![feature(const_mut_refs)]
20+
#![feature(const_ptr_offset_from)]
21+
#![feature(const_refs_to_cell)]
22+
#![feature(const_trait_impl)]
23+
#![feature(doc_cfg)]
24+
#![feature(generic_associated_types)]
25+
#![feature(maybe_uninit_extra)]
26+
#![feature(ptr_metadata)]
27+
#![feature(receiver_trait)]
28+
#![feature(coerce_unsized)]
29+
#![feature(dispatch_from_dyn)]
30+
#![feature(unsize)]
3331

3432
// Ensure conditional compilation based on the kernel configuration works;
3533
// otherwise we may silently break things like initcall handling.

0 commit comments

Comments
 (0)