Skip to content

Commit

Permalink
Couple more fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
RReverser committed Sep 11, 2024
1 parent aef03fe commit 4887a05
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 1 addition & 0 deletions src/errors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,7 @@ impl ASCOMError {
}

/// Create a new error with unspecified error code and the given message.
#[cfg(feature = "client")]
pub(crate) fn unspecified(message: impl std::fmt::Display) -> Self {
Self::new(ASCOMErrorCode::UNSPECIFIED, message)
}
Expand Down
2 changes: 0 additions & 2 deletions src/response.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,12 @@ pub(crate) struct ValueResponse<T> {
value: T,
}

#[cfg(feature = "server")]
impl<T> From<T> for ValueResponse<T> {
fn from(value: T) -> Self {
Self { value }
}
}

#[cfg(feature = "client")]
impl<T> ValueResponse<T> {
pub(crate) fn into(self) -> T {
self.value
Expand Down

0 comments on commit 4887a05

Please sign in to comment.