diff options
author | 2022-03-01 17:44:02 +0000 | |
---|---|---|
committer | 2022-03-01 17:44:02 +0000 | |
commit | 2e4cbe9df595c2c4cb90c788030351a7f91339f6 (patch) | |
tree | 2e1bf40e2eaeeb4b58c996c1659c8a7429e2a518 /macros/src/codegen/post_init.rs | |
parent | 57da1e0403510cafbdcf88e402b39ae6d3bf323e (diff) | |
parent | 5ed93bd1bf056f1d2b8632502300d7488df4e9df (diff) | |
download | rtic-2e4cbe9df595c2c4cb90c788030351a7f91339f6.tar.gz rtic-2e4cbe9df595c2c4cb90c788030351a7f91339f6.tar.zst rtic-2e4cbe9df595c2c4cb90c788030351a7f91339f6.zip |
Merge #617
617: Clippy with pedantic suggestions r=korken89 a=AfoHT
Co-authored-by: Henrik Tjäder <henrik@grepit.se>
Diffstat (limited to 'macros/src/codegen/post_init.rs')
-rw-r--r-- | macros/src/codegen/post_init.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/macros/src/codegen/post_init.rs b/macros/src/codegen/post_init.rs index 8bd3a7dd..9531254c 100644 --- a/macros/src/codegen/post_init.rs +++ b/macros/src/codegen/post_init.rs @@ -48,6 +48,7 @@ pub fn codegen(app: &App, analysis: &Analysis) -> Vec<TokenStream2> { // let doc = format!(" RTIC internal: {}:{}", file!(), line!()); // stmts.push(quote!(#[doc = #doc])); + #[allow(clippy::cast_possible_truncation)] let idx = Index { index: i as u32, span: Span::call_site(), |