Skip to content

Commit

Permalink
escape_ascii
Browse files Browse the repository at this point in the history
  • Loading branch information
cn-kali-team committed Mar 3, 2025
1 parent 858acd2 commit c0177e5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/record.rs
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ impl From<&Request> for CommandRecord {
command.push_str(" -d ");
command.push_str(&format!(
"'{}'\\\r\n",
Bytes::from(body.to_vec()).escape_ascii().to_string()
Bytes::from(body.to_vec()).escape_ascii()
));
}
command.push(' ');
Expand Down
2 changes: 1 addition & 1 deletion src/request.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ impl Debug for Request {
if let Some(raw) = &self.raw_request {
f.debug_struct("RawRequest")
.field("uri", &self.uri)
.field("raw", &raw.raw.escape_ascii().to_string())
.field("raw", &format_args!("{}", &raw.raw.escape_ascii()))
.field("unsafe_raw", &raw.unsafe_raw)
.finish()
} else {
Expand Down

0 comments on commit c0177e5

Please sign in to comment.