mirror of
https://github.com/rtic-rs/rtic.git
synced 2025-12-19 06:15:45 +01:00
Cargo fmt
This commit is contained in:
parent
fea6d2facf
commit
f151d5871c
11 changed files with 53 additions and 99 deletions
|
|
@ -5,14 +5,7 @@ use rtic_syntax::ast::App;
|
|||
use crate::{analyze::Analysis, check::Extra, codegen::util};
|
||||
|
||||
/// Generates code that runs before `#[init]`
|
||||
pub fn codegen(
|
||||
app: &App,
|
||||
analysis: &Analysis,
|
||||
extra: &Extra,
|
||||
) ->
|
||||
// `pre_init_stmts`
|
||||
Vec<TokenStream2>
|
||||
{
|
||||
pub fn codegen(app: &App, analysis: &Analysis, extra: &Extra) -> Vec<TokenStream2> {
|
||||
let mut stmts = vec![];
|
||||
|
||||
// disable interrupts -- `init` must run with interrupts disabled
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue