Skip to content

Commit

Permalink
Merge pull request #1328 from pbor/unsafe-future
Browse files Browse the repository at this point in the history
If an async function is marked unsafe, mark unsafe also the _future v…
  • Loading branch information
sdroege authored Mar 12, 2022
2 parents 77454f7 + 8e8bae1 commit a4ffdd5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/codegen/function.rs
Original file line number Diff line number Diff line change
Expand Up @@ -160,10 +160,11 @@ pub fn generate(
doc_hidden(w, analysis.doc_hidden, comment_prefix, indent)?;
writeln!(
w,
"{}{}{}{}{}",
"{}{}{}{}{}{}",
tabs(indent),
comment_prefix,
pub_prefix,
unsafe_,
declaration,
suffix
)?;
Expand Down

0 comments on commit a4ffdd5

Please sign in to comment.