From 3f5fdae0d841c83733dccfd20ec8f4ca1c7b2c45 Mon Sep 17 00:00:00 2001 From: David Gibson Date: Thu, 22 Apr 2021 11:29:12 +1000 Subject: [PATCH] agent/rustjail: (trivial) Clean up comment on process_grpc_to_oci() This comment appears to be connected specifically with this function, but has some other items separating it for no particular reason. It also has a typo. Correct both. Signed-off-by: David Gibson --- src/agent/rustjail/src/lib.rs | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/agent/rustjail/src/lib.rs b/src/agent/rustjail/src/lib.rs index a694f2390..5416af560 100644 --- a/src/agent/rustjail/src/lib.rs +++ b/src/agent/rustjail/src/lib.rs @@ -58,13 +58,12 @@ pub mod validator; // pub mod user; //pub mod intelrdt; -use protocols::oci as grpc; - -// construtc ociSpec from grpc::Spec, which is needed for hook -// execution. since hooks read config.json - use std::collections::HashMap; +use protocols::oci as grpc; + +// construct ociSpec from grpc::Spec, which is needed for hook +// execution. since hooks read config.json pub fn process_grpc_to_oci(p: &grpc::Process) -> oci::Process { let console_size = if p.ConsoleSize.is_some() { let c = p.ConsoleSize.as_ref().unwrap();