We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fd9a614 commit bbc53c8Copy full SHA for bbc53c8
1 file changed
ohkami/src/response/headers.rs
@@ -479,7 +479,7 @@ impl Headers {
479
/// SAFETY: `buf` has remaining capacity of at least `self.size`
480
pub(crate) unsafe fn write_unchecked_to(&self, buf: &mut Vec<u8>) {
481
for (i, v) in self.standard.iter() {
482
- let h = std::mem::transmute::<_, Header>(*i as u8); {
+ let h = std::mem::transmute::<_, Header>(i as u8); {
483
crate::push_unchecked!(buf <- h.as_bytes());
484
crate::push_unchecked!(buf <- b": ");
485
crate::push_unchecked!(buf <- v.as_bytes());
0 commit comments