You've already forked ctap-types
mirror of
https://github.com/trussed-dev/ctap-types.git
synced 2026-06-20 04:16:17 -07:00
Remove unused Rpc trait
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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::*;
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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>;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user