Skip to content

Commit

Permalink
fix attribute macro
Browse files Browse the repository at this point in the history
  • Loading branch information
HTGAzureX1212 committed Aug 23, 2023
1 parent 81e637e commit 755f883
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
- **Changed:** allowed workers to send gateway commands to leaders
- **Changed:** updated cache entities and repositories
- **Changed:** replaced `/latency` and `/uptime` with `/info bot`
- **Changed:** deprecated `CommandMetadata` derive macro

## Localization Infrastructure

Expand Down
2 changes: 1 addition & 1 deletion discord-frontend/hartex-discord-commands-macros/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ pub fn derive_command_metadata_trait(tokens: TokenStream) -> TokenStream {

/// Macro to implement the `CommandMetadata` trait.
#[proc_macro_attribute]
pub fn metadata(tokens: TokenStream) -> TokenStream {
pub fn metadata(tokens: TokenStream, _: TokenStream) -> TokenStream {
let mut input = parse_macro_input!(tokens as commandmetadata::MetadataMacroInput);
commandmetadata::implement_metadata(&mut input)
.unwrap_or_default()
Expand Down

0 comments on commit 755f883

Please sign in to comment.