Skip to content

Commit 4f84ffe

Browse files
authored
Impl Debug for Body consistent with SafeDebug (Azure#2710)
Also cleans up a testing artifact left over from a previous PR.
1 parent 0a29a27 commit 4f84ffe

File tree

2 files changed

+2
-1694
lines changed
  • sdk/typespec
    • typespec_client_core/src/http/request
    • typespec_macros/tests/data/compilation-tests

2 files changed

+2
-1694
lines changed

sdk/typespec/typespec_client_core/src/http/request/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,10 @@ impl Body {
5858
impl fmt::Debug for Body {
5959
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
6060
match self {
61-
Self::Bytes(v) if !v.is_empty() => f.write_str("Bytes { ... }"),
61+
Self::Bytes(v) if !v.is_empty() => f.write_str("Bytes { .. }"),
6262
Self::Bytes(_) => f.write_str("Bytes {}"),
6363
#[cfg(not(target_arch = "wasm32"))]
64-
Self::SeekableStream(v) if !v.is_empty() => f.write_str("SeekableStream { ... }"),
64+
Self::SeekableStream(v) if !v.is_empty() => f.write_str("SeekableStream { .. }"),
6565
#[cfg(not(target_arch = "wasm32"))]
6666
Self::SeekableStream(_) => f.write_str("SeekableStream {}"),
6767
}

0 commit comments

Comments
 (0)