Skip to content

Commit

Permalink
Fix compilation errors that arose from rebasing
Browse files Browse the repository at this point in the history
Additionally, adapt some code to the `next` branch.
  • Loading branch information
arqunis committed Oct 24, 2023
1 parent 78c8293 commit 7066d77
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 26 deletions.
10 changes: 2 additions & 8 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ bitflags = "1.3"
serde_json = "1.0.75"
serde-value = "0.7"
async-trait = "0.1.9"
rustversion = "1.0.7"

[dependencies.nougat]
version = "0.2.0"
Expand All @@ -29,10 +30,6 @@ optional = true
version = "2.2.0"
optional = true

[dependencies.rustversion]
version = "1.0.7"
optional = true

[dependencies.simd-json]
version = "0.4.14"
optional = true
Expand Down Expand Up @@ -177,7 +174,7 @@ default_no_backend = [

builder = ["utils"]
cache = ["dashmap", "parking_lot"]
collector = ["gateway", "model", "rustversion", "derivative", "nougat"]
collector = ["gateway", "model", "derivative", "nougat"]
client = ["http", "typemap_rev"]
extras = []
framework = ["client", "model", "utils"]
Expand Down Expand Up @@ -216,9 +213,6 @@ native_tls_backend = [
"bytes",
]

# TODO(next): Remove, these are deprecated aliases
simdjson = ["simd_json"]
voice-model = ["voice_model"]

[package.metadata.docs.rs]
features = ["default", "collector", "unstable_discord_api", "voice", "voice-model"]
Expand Down
17 changes: 1 addition & 16 deletions build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,19 +12,4 @@ compile_error!(
If you are unsure, go with `rustls_backend`."
);

#[cfg_attr(
feature = "simdjson",
deprecated = "The `simdjson` feature name is deprecated and will be removed in the next version of serenity, use `simd_json`."
)]
fn deprecated_simd_json_feature() {}

#[cfg_attr(
feature = "voice-model",
deprecated = "The `voice-model` feature name is deprecated and will be removed in the next version of serenity, use `voice_model`."
)]
fn deprecated_voice_model_feature() {}

fn main() {
deprecated_simd_json_feature();
deprecated_voice_model_feature()
}
fn main() {}
1 change: 0 additions & 1 deletion src/model/channel/guild_channel.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
use std::convert::TryFrom;
use std::fmt;
#[cfg(feature = "model")]
use std::sync::Arc;
Expand Down
2 changes: 1 addition & 1 deletion src/model/guild/guild_id.rs
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ impl GuildId {
/// # async fn run() {
/// # use serenity::http::Http;
/// # let http = Http::new("token");
/// let _rule = GuildId(7)
/// let _rule = GuildId::new(7)
/// .create_automod_rule(&http, |r| {
/// r.name("foobar filter")
/// .trigger(Trigger::Keyword(vec!["foo*".to_string(), "*bar".to_string()]))
Expand Down

0 comments on commit 7066d77

Please sign in to comment.