rust: fixed compiler warning in the example

Changelog-None: rust: fixed compiler warning in the example

Signed-off-by: Vincenzo Palazzo <vincenzopalazzodev@gmail.com>
This commit is contained in:
Vincenzo Palazzo 2022-03-11 14:09:26 +01:00 committed by Rusty Russell
parent aad4495f56
commit 7e6893af9e

View file

@ -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);