Skip to content

Commit

Permalink
cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
mmastrac committed Oct 18, 2022
1 parent 58ec7c3 commit 734c797
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ctor/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,10 @@ use proc_macro::TokenStream;
/// it to be stable.
#[doc(hidden)]
#[proc_macro_attribute]
pub fn __ctor_internal_decorator_attributes(_attribute: TokenStream, function: TokenStream) -> TokenStream {
pub fn __ctor_internal_decorator_attributes(
_attribute: TokenStream,
function: TokenStream,
) -> TokenStream {
let mut attrs: TokenStream = quote!(
#[cfg_attr(any(target_os = "linux", target_os = "android"), link_section = ".init_array")]
#[cfg_attr(target_os = "freebsd", link_section = ".init_array")]
Expand Down

0 comments on commit 734c797

Please sign in to comment.