Skip to content

Commit

Permalink
with_namespace!: fix formatting and accept expr instead of ident
Browse files Browse the repository at this point in the history
  • Loading branch information
adsick committed Dec 3, 2024
1 parent 0db44b9 commit c3408e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/client/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ pub async fn connect(
/// To use this macro, the `tonic::Request` is needed.
#[macro_export]
macro_rules! with_namespace {
($req : ident, $ns: expr) => {{
($req:expr, $ns:expr) => {{
let mut req = Request::new($req);
let md = req.metadata_mut();
// https://github.com/containerd/containerd/blob/main/pkg/namespaces/grpc.go#L27
Expand Down

0 comments on commit c3408e9

Please sign in to comment.