Skip to content

Commit 3b6f86f

Browse files
authored
Fix formatting in Envoy metadata example. (#312)
Found by clippy (nightly). Signed-off-by: Piotr Sikora <code@piotrsikora.dev>
1 parent ab305df commit 3b6f86f

File tree

1 file changed

+1
-3
lines changed
  • examples/envoy_filter_metadata/src

1 file changed

+1
-3
lines changed

examples/envoy_filter_metadata/src/lib.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,7 @@ impl HttpContext for MetadataHttp {
3838
self.send_http_response(
3939
200,
4040
vec![("Powered-By", "proxy-wasm"), ("uppercased-metadata", &data)],
41-
Some(
42-
format!("Custom response with Envoy metadata: {:?}\n", data).as_bytes(),
43-
),
41+
Some(format!("Custom response with Envoy metadata: {data:?}\n").as_bytes()),
4442
);
4543
Action::Pause
4644
}

0 commit comments

Comments
 (0)