Skip to content

Commit ce97ba3

Browse files
committed
make PreMsgMetadata.to_header_value not consume self/PreMsgMetadata
1 parent fdd0cd5 commit ce97ba3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/download/pre_msg_metadata.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ impl PreMsgMetadata {
6363
}))
6464
}
6565

66-
pub(crate) fn to_header_value(self) -> Result<String> {
66+
pub(crate) fn to_header_value(&self) -> Result<String> {
6767
Ok(serde_json::to_string(&self)?)
6868
}
6969

0 commit comments

Comments
 (0)