diff --git a/Cargo.toml b/Cargo.toml index 7fba749..11c8a69 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "small_ctor" -version = "0.1.0" +version = "0.1.1" edition = "2018" authors = ["Armin Ronacher "] license = "Apache-2.0" diff --git a/src/lib.rs b/src/lib.rs index 1e00cce..8c88f7d 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -215,7 +215,7 @@ pub fn ctor(args: TokenStream, input: TokenStream) -> TokenStream { TokenTree::Punct(Punct::new(',', Spacing::Alone)), TokenTree::Ident(Ident::new("link_section", Span::call_site())), TokenTree::Punct(Punct::new('=', Spacing::Alone)), - TokenTree::Literal(Literal::string("__DATA,__mod_init_func")), + TokenTree::Literal(Literal::string("__DATA_CONST,__mod_init_func")), ], )) ],