We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 858acd2 commit c0177e5Copy full SHA for c0177e5
src/record.rs
@@ -113,7 +113,7 @@ impl From<&Request> for CommandRecord {
113
command.push_str(" -d ");
114
command.push_str(&format!(
115
"'{}'\\\r\n",
116
- Bytes::from(body.to_vec()).escape_ascii().to_string()
+ Bytes::from(body.to_vec()).escape_ascii()
117
));
118
}
119
command.push(' ');
src/request.rs
@@ -40,7 +40,7 @@ impl Debug for Request {
40
if let Some(raw) = &self.raw_request {
41
f.debug_struct("RawRequest")
42
.field("uri", &self.uri)
43
- .field("raw", &raw.raw.escape_ascii().to_string())
+ .field("raw", &format_args!("{}", &raw.raw.escape_ascii()))
44
.field("unsafe_raw", &raw.unsafe_raw)
45
.finish()
46
} else {
0 commit comments