Skip to content

Commit

Permalink
chore: fix clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
hzlinyiyu-netease committed Sep 14, 2024
1 parent f81424d commit f2c5d37
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions poem-grpc/src/status.rs
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ impl Code {
pub struct Status {
code: Code,
message: Option<String>,
metadata: Metadata,
metadata: Box<Metadata>,
}

impl Display for Status {
Expand Down Expand Up @@ -300,7 +300,7 @@ impl Status {
/// Attach a meta data to this status.
#[inline]
pub fn with_metadata(self, metadata: Metadata) -> Self {
Self { metadata, ..self }
Self { metadata: Box::new(metadata), ..self }
}

/// Returns a reference to the metadata.
Expand Down

0 comments on commit f2c5d37

Please sign in to comment.