Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
hzlinyiyu-netease committed Sep 14, 2024
1 parent f2c5d37 commit 9e461fe
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion poem-grpc/src/status.rs
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,10 @@ impl Status {
/// Attach a meta data to this status.
#[inline]
pub fn with_metadata(self, metadata: Metadata) -> Self {
Self { metadata: Box::new(metadata), ..self }
Self {
metadata: Box::new(metadata),
..self
}
}

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

0 comments on commit 9e461fe

Please sign in to comment.