Skip to content

Commit 719e256

Browse files
committed
use additive tags cargo feature
1 parent acf46b0 commit 719e256

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

crates/bot/Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,5 @@ tokio = { version = "1", features = ["rt", "macros", "sync"] }
2222
tracing = "0.1"
2323

2424
[features]
25-
no-tags = []
25+
default = ["tags"]
26+
tags = []

crates/bot/src/bot.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -788,13 +788,13 @@ pub async fn run() {
788788
source(),
789789
ast(),
790790
version(),
791-
#[cfg(not(feature = "no-tags"))]
791+
#[cfg(feature = "tags")]
792792
tag(),
793-
#[cfg(not(feature = "no-tags"))]
793+
#[cfg(feature = "tags")]
794794
set_tag(),
795-
#[cfg(not(feature = "no-tags"))]
795+
#[cfg(feature = "tags")]
796796
delete_tag(),
797-
#[cfg(not(feature = "no-tags"))]
797+
#[cfg(feature = "tags")]
798798
list_tags(),
799799
],
800800
allowed_mentions: Some(CreateAllowedMentions::new()),

0 commit comments

Comments
 (0)