Skip to content

Commit

Permalink
Command cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
novacrazy committed Dec 9, 2023
1 parent 0641686 commit 9ce41c8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/api/command.rs
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ pub trait Command: sealed::Sealed {
type Body: CommandBody;

/// HTTP Method used to execute the command
const METHOD: Method;
const HTTP_METHOD: Method;

const FLAGS: CommandFlags;

Expand Down Expand Up @@ -244,7 +244,7 @@ macro_rules! command {
impl $crate::api::command::Command for $name {
type Result = $result;

const METHOD: http::Method = http::Method::$method;
const HTTP_METHOD: http::Method = http::Method::$method;

const FLAGS: CommandFlags = CommandFlags::empty()
$(.union((stringify!($body_name), CommandFlags::HAS_BODY).1))?
Expand Down
2 changes: 1 addition & 1 deletion src/api/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ pub mod error;
#[macro_use]
mod command;

pub use command::{Command, CommandFlags, RateLimit};
pub use command::{Command, CommandBody, CommandFlags, CommandResult, RateLimit};

pub mod commands;

Expand Down

0 comments on commit 9ce41c8

Please sign in to comment.