Skip to content

Commit 1c77ea0

Browse files
committed
Fix some CI
1 parent 72169ab commit 1c77ea0

File tree

7 files changed

+11
-2
lines changed

7 files changed

+11
-2
lines changed

Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,9 @@ typesize = { version = "0.1.13", optional = true, features = ["url", "time", "se
5555
url = { version = "2.4.1", features = ["serde"], optional = true }
5656
zstd-safe = { version = "7.2.1", optional = true }
5757

58+
[dev-dependencies]
59+
small-fixed-array = { version = "0.4", features = ["serde"] }
60+
5861
[features]
5962
# Defaults with different backends
6063
default = ["default_no_backend", "rustls_backend"]

serenity-core/src/builder/get_entitlements.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,10 @@ use nonmax::NonMaxU8;
44

55
#[cfg(feature = "http")]
66
use crate::http::Http;
7-
use crate::internal::prelude::Result;
7+
#[cfg(feature = "http")]
8+
use crate::internal::prelude::*;
89
use crate::model::id::{EntitlementId, GuildId, SkuId, UserId};
10+
#[cfg(feature = "http")]
911
use crate::model::monetization::Entitlement;
1012

1113
/// Builds a request to fetch active and ended [`Entitlement`]s.

serenity-core/src/error.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ use std::fmt;
33
use std::io::Error as IoError;
44

55
#[cfg(feature = "http")]
6-
use reqwest::{header::InvalidHeaderValue, Error as ReqwestError};
6+
use reqwest::{Error as ReqwestError, header::InvalidHeaderValue};
77

88
#[cfg(feature = "http")]
99
use crate::http::HttpError;

serenity-core/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ extern crate serde;
44
#[macro_use]
55
mod internal;
66

7+
#[cfg(feature = "http")]
78
mod constants;
89
pub mod secrets;
910

serenity-core/src/model/channel/channel_id.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -641,6 +641,7 @@ impl GenericChannelId {
641641
/// # Errors
642642
///
643643
/// Returns [`Error::Http`] if the channel retrieval request failed.
644+
#[cfg_attr(not(feature = "cache"), allow(unused_variable))]
644645
pub async fn to_channel(
645646
self,
646647
cache_http: impl CacheHttp,

src/error.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ use crate::gateway::GatewayError;
1313
pub type Result<T, E = Error> = std::result::Result<T, E>;
1414

1515
#[derive(Debug)]
16+
#[non_exhaustive]
1617
pub enum Error {
1718
/// An error from the [`gateway`] module.
1819
///

src/internal.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ pub mod tokio {
2626
}
2727
}
2828

29+
#[cfg(feature = "gateway")]
2930
#[macro_use]
3031
pub mod macros {
3132
macro_rules! enum_number {

0 commit comments

Comments
 (0)