Skip to content

Commit

Permalink
codegen: Fix extra new line
Browse files Browse the repository at this point in the history
  • Loading branch information
bilelmoussaoui committed Aug 25, 2023
1 parent 70f4f2e commit c9d6716
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions src/codegen/enums.rs
Original file line number Diff line number Diff line change
Expand Up @@ -427,8 +427,7 @@ impl FromGlib<{sys_crate_name}::{ffi_name}> for {name} {{
doc_alias(w, get_type, "", 1)?;
writeln!(
w,
"
fn static_type() -> {glib_type} {{
" fn static_type() -> {glib_type} {{
unsafe {{ from_glib({sys_crate_name}::{get_type}()) }}
}}
}}",
Expand Down
3 changes: 1 addition & 2 deletions src/codegen/flags.rs
Original file line number Diff line number Diff line change
Expand Up @@ -265,8 +265,7 @@ impl FromGlib<{sys_crate_name}::{ffi_name}> for {name} {{
doc_alias(w, get_type, "", 1)?;
writeln!(
w,
"
fn static_type() -> {glib_type} {{
" fn static_type() -> {glib_type} {{
unsafe {{ from_glib({sys_crate_name}::{get_type}()) }}
}}
}}",
Expand Down

0 comments on commit c9d6716

Please sign in to comment.