Skip to content

Commit 373f809

Browse files
committed
Add todo! & unimplemented! to format macros list
For some reason, the `todo!` and `unimplemented!` macros were not included in the list of format-supporting macros list. Since they seem to behave exactly the same as all others like `write!` and `assert!`, adding them now.
1 parent 732e329 commit 373f809

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

clippy_utils/src/macros.rs

+2
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ const FORMAT_MACRO_DIAG_ITEMS: &[Symbol] = &[
3030
sym::print_macro,
3131
sym::println_macro,
3232
sym::std_panic_macro,
33+
sym::todo_macro,
34+
sym::unimplemented_macro,
3335
sym::write_macro,
3436
sym::writeln_macro,
3537
];

0 commit comments

Comments
 (0)