From 3d33250eac39e2907e69d4da3a1b574dddae5e67 Mon Sep 17 00:00:00 2001 From: Chelsea Mafrica Date: Mon, 3 May 2021 19:40:45 -0700 Subject: [PATCH] agent: Wrong pid method used no method named `as_pid` found for struct `namespace::Namespace` in the current scope --> src/namespace.rs:219:14 | 34 | pub struct Namespace { | -------------------- method `as_pid` not found for this ... 219 | .as_pid() | ^^^^^^ method not found in `namespace::Namespace` Switch to get_pid() Fixes #1698 Signed-off-by: Chelsea Mafrica --- src/agent/src/namespace.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/agent/src/namespace.rs b/src/agent/src/namespace.rs index e3de7d05d..953be1586 100644 --- a/src/agent/src/namespace.rs +++ b/src/agent/src/namespace.rs @@ -216,7 +216,7 @@ mod tests { let tmpdir = Builder::new().prefix("pid").tempdir().unwrap(); let ns_pid = Namespace::new(&logger) - .as_pid() + .get_pid() .set_root_dir(tmpdir.path().to_str().unwrap()) .setup();