fix: compilation with --no-default-features (#593)
This commit is contained in:
parent
df6c3f0665
commit
53b64a9f87
1 changed files with 10 additions and 9 deletions
|
|
@ -1,6 +1,5 @@
|
|||
use std::{borrow::Cow, fmt::Display};
|
||||
|
||||
use crate::ServiceError;
|
||||
pub use crate::model::ErrorData;
|
||||
#[deprecated(
|
||||
note = "Use `rmcp::ErrorData` instead, `rmcp::ErrorData` could become `RmcpError` in the future."
|
||||
|
|
@ -22,8 +21,9 @@ impl std::error::Error for ErrorData {}
|
|||
#[derive(Debug, thiserror::Error)]
|
||||
#[allow(clippy::large_enum_variant)]
|
||||
pub enum RmcpError {
|
||||
#[cfg(any(feature = "client", feature = "server"))]
|
||||
#[error("Service error: {0}")]
|
||||
Service(#[from] ServiceError),
|
||||
Service(#[from] crate::ServiceError),
|
||||
#[cfg(feature = "client")]
|
||||
#[error("Client initialization error: {0}")]
|
||||
ClientInitialize(#[from] crate::service::ClientInitializeError),
|
||||
|
|
|
|||
Loading…
Reference in a new issue