Skip to content

Commit c0177e5

Browse files
committed
escape_ascii
1 parent 858acd2 commit c0177e5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/record.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ impl From<&Request> for CommandRecord {
113113
command.push_str(" -d ");
114114
command.push_str(&format!(
115115
"'{}'\\\r\n",
116-
Bytes::from(body.to_vec()).escape_ascii().to_string()
116+
Bytes::from(body.to_vec()).escape_ascii()
117117
));
118118
}
119119
command.push(' ');

src/request.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ impl Debug for Request {
4040
if let Some(raw) = &self.raw_request {
4141
f.debug_struct("RawRequest")
4242
.field("uri", &self.uri)
43-
.field("raw", &raw.raw.escape_ascii().to_string())
43+
.field("raw", &format_args!("{}", &raw.raw.escape_ascii()))
4444
.field("unsafe_raw", &raw.unsafe_raw)
4545
.finish()
4646
} else {

0 commit comments

Comments
 (0)