Remove unused Rpc trait

This commit is contained in:
Robin Krahl
2026-06-08 09:55:48 +02:00
parent 43eb437d38
commit 5795bfc809
4 changed files with 2 additions and 15 deletions
+2
View File
@@ -8,6 +8,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
[Unreleased]: https://github.com/trussed-dev/ctap-types/compare/0.6.0-rc.4...HEAD
- Remove unused `Rpc` trait.
## [0.6.0-rc.4] 2026-06-01
[0.6.0-rc.4]: https://github.com/trussed-dev/ctap-types/compare/0.6.0-rc.3...0.6.0-rc.4
-7
View File
@@ -255,13 +255,6 @@ pub trait Authenticator {
}
}
impl<A: Authenticator> crate::Rpc<Error, Request<'_>, Response> for A {
/// Dispatches the enum of possible requests into the appropriate trait method.
fn call(&mut self, request: &Request<'_>) -> Result<Response> {
self.call_ctap1(request)
}
}
#[cfg(test)]
mod tests {
use super::*;
-3
View File
@@ -503,9 +503,6 @@ pub enum Error {
}
/// CTAP2 authenticator API
///
/// Note that all Authenticators automatically implement [`crate::Rpc`] with [`Request`] and
/// [`Response`].
pub trait Authenticator {
fn get_info(&mut self) -> get_info::Response;
-5
View File
@@ -51,8 +51,3 @@ impl Display for TryFromStrError {
"invalid enum value".fmt(f)
}
}
/// Call a remote procedure with a request, receive a response, maybe.
pub trait Rpc<Error, Request, Response> {
fn call(&mut self, request: &Request) -> core::result::Result<Response, Error>;
}