Skip to content

Commit 4c2b9ec

Browse files
authored
Derive Copy trait to SizeHint struct
The struct has only a size of 24 bytes and is trivially copy-able.
1 parent 915d6d5 commit 4c2b9ec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

http-body/src/size_hint.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
///
55
/// * 0 for `lower`
66
/// * `None` for `upper`.
7-
#[derive(Debug, Default, Clone)]
7+
#[derive(Debug, Default, Clone, Copy)]
88
pub struct SizeHint {
99
lower: u64,
1010
upper: Option<u64>,

0 commit comments

Comments
 (0)