Skip to content

Commit

Permalink
style: cargo check
Browse files Browse the repository at this point in the history
  • Loading branch information
yang20150702 committed Jul 1, 2024
1 parent df10d4f commit d3dd26b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions dubbo/src/extension/invoker_extension.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,12 @@ pub struct GrpcInvocation {
// value: Box<dyn Stream<Item = Box<dyn Serializable + Send + 'static>> + Send + 'static>,
// }

#[allow(dead_code)]
pub trait Serializable {
fn serialize(&self, serialization_type: String) -> Result<Bytes, StdError>;
}

#[allow(dead_code)]
pub trait Deserializable {
fn deserialize(&self, bytes: Bytes, deserialization_type: String) -> Result<Self, StdError>
where
Expand Down

0 comments on commit d3dd26b

Please sign in to comment.