From 7e6893af9ee5424bbab0ab1ee8def39e3d1f9da9 Mon Sep 17 00:00:00 2001 From: Vincenzo Palazzo Date: Fri, 11 Mar 2022 14:09:26 +0100 Subject: [PATCH] rust: fixed compiler warning in the example Changelog-None: rust: fixed compiler warning in the example Signed-off-by: Vincenzo Palazzo --- cln-rpc/examples/getinfo.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cln-rpc/examples/getinfo.rs b/cln-rpc/examples/getinfo.rs index 5cbebdfaf..9e61e22b4 100644 --- a/cln-rpc/examples/getinfo.rs +++ b/cln-rpc/examples/getinfo.rs @@ -6,7 +6,9 @@ use tokio; #[tokio::main] async fn main() -> Result<(), anyhow::Error> { + // initialize the log inside the library env_logger::init(); + let rpc_path = args().nth(1).context("missing argument: socket path")?; let p = Path::new(&rpc_path);