@@ -278,34 +278,8 @@ trace = ["net-trace"]
278278# # An alias for the `virtio-vsock` feature.
279279vsock = [" virtio-vsock" ]
280280
281- [lints .rust ]
282- rust_2018_idioms = " warn"
283- unexpected_cfgs = { level = " warn" , check-cfg = [' cfg(careful)' ] }
284- unsafe_op_in_unsafe_fn = " warn"
285-
286- [lints .clippy ]
287- borrow_as_ptr = " warn"
288- cast_lossless = " warn"
289- decimal_literal_representation = " warn"
290- default_trait_access = " warn"
291- explicit_deref_methods = " warn"
292- if_not_else = " warn"
293- ignored_unit_patterns = " warn"
294- implicit_clone = " warn"
295- inconsistent_struct_constructor = " warn"
296- manual_assert = " warn"
297- manual_let_else = " warn"
298- match_same_arms = " warn"
299- match_wildcard_for_single_variants = " warn"
300- ptr_as_ptr = " warn"
301- ptr_cast_constness = " warn"
302- ref_as_ptr = " warn"
303- ref_option = " warn"
304- semicolon_if_nothing_returned = " warn"
305- separated_literal_suffix = " warn"
306- transmute_ptr_to_ptr = " warn"
307- uninlined_format_args = " warn"
308- unreadable_literal = " warn"
281+ [lints ]
282+ workspace = true
309283
310284[dependencies ]
311285hermit-macro = { version = " =0.1.0" , path = " hermit-macro" }
@@ -410,6 +384,35 @@ exclude = [
410384 " hermit-builtins" ,
411385]
412386
387+ [workspace .lints .rust ]
388+ rust_2018_idioms = " warn"
389+ unexpected_cfgs = { level = " warn" , check-cfg = [' cfg(careful)' ] }
390+ unsafe_op_in_unsafe_fn = " warn"
391+
392+ [workspace .lints .clippy ]
393+ borrow_as_ptr = " warn"
394+ cast_lossless = " warn"
395+ decimal_literal_representation = " warn"
396+ default_trait_access = " warn"
397+ explicit_deref_methods = " warn"
398+ if_not_else = " warn"
399+ ignored_unit_patterns = " warn"
400+ implicit_clone = " warn"
401+ inconsistent_struct_constructor = " warn"
402+ manual_assert = " warn"
403+ manual_let_else = " warn"
404+ match_same_arms = " warn"
405+ match_wildcard_for_single_variants = " warn"
406+ ptr_as_ptr = " warn"
407+ ptr_cast_constness = " warn"
408+ ref_as_ptr = " warn"
409+ ref_option = " warn"
410+ semicolon_if_nothing_returned = " warn"
411+ separated_literal_suffix = " warn"
412+ transmute_ptr_to_ptr = " warn"
413+ uninlined_format_args = " warn"
414+ unreadable_literal = " warn"
415+
413416[patch .crates-io ]
414417safe-mmio = { git = " https://github.com/hermit-os/safe-mmio" , branch = " be" }
415418
0 commit comments