Skip to content

Commit

Permalink
fix: compile on non-default-features
Browse files Browse the repository at this point in the history
  • Loading branch information
kozabrada123 committed Oct 16, 2024
1 parent ae2042f commit 090367b
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/types/schema/mfa.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,10 @@ use std::fmt::Display;
use serde::{Deserialize, Serialize};
use serde_repr::{Deserialize_repr, Serialize_repr};

use crate::{
errors::{ChorusError, ChorusResult},
instance::ChorusUser,
types::Snowflake,
};
use crate::{types::Snowflake, errors::ChorusError};

#[cfg(feature = "client")]
use crate::{instance::ChorusUser, ChorusResult};

#[derive(Debug, Clone, Serialize, Deserialize, PartialEq, Eq, Hash)]
#[serde(rename_all = "snake_case")]
Expand Down Expand Up @@ -43,6 +42,7 @@ pub struct MfaChallenge {
pub methods: Vec<MfaMethod>,
}

#[cfg(feature = "client")]
impl MfaChallenge {
/// Attempts to complete the [MfaChallenge] with authentication data from the user.
///
Expand Down Expand Up @@ -230,6 +230,7 @@ pub struct MfaVerifySchema {
pub data: String,
}

#[cfg(feature = "client")]
impl MfaVerifySchema {
/// Creates the verify schema from an [MfaChallenge] and data needed to complete it.
///
Expand Down

0 comments on commit 090367b

Please sign in to comment.