Skip to content

Commit e5b5b4a

Browse files
committed
Fix formatting in Envoy metadata example.
Found by clippy (nightly). Signed-off-by: Piotr Sikora <[email protected]>
1 parent ab305df commit e5b5b4a

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

+1-3
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)