Skip to content

Commit e39ee52

Browse files
committed
does CI just not pick this up?
1 parent 338a24d commit e39ee52

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/model/channel/message.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@ use crate::constants;
1414
#[cfg(feature = "model")]
1515
use crate::http::{CacheHttp, Http};
1616
use crate::model::prelude::*;
17-
use crate::model::utils::{StrOrInt, deserialize_components, discord_colours};
17+
#[cfg(not(feature = "unstable"))]
18+
use crate::model::utils::deserialize_components;
19+
use crate::model::utils::{StrOrInt, discord_colours};
1820

1921
/// A representation of a message over a guild's text channel, a group, or a private channel.
2022
///

src/model/utils.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,7 @@ where
242242

243243
// Custom deserialize function to deserialize components safely without knocking the whole message
244244
// out when new components are found but not supported.
245+
#[cfg(not(feature = "unstable"))]
245246
pub fn deserialize_components<'de, D>(deserializer: D) -> Result<FixedArray<ActionRow>, D::Error>
246247
where
247248
D: Deserializer<'de>,

0 commit comments

Comments
 (0)