From a2ccc774cd41b13238f61ebbe38d17ecbda691e4 Mon Sep 17 00:00:00 2001 From: Ricardo Delfin Date: Fri, 13 Jan 2023 16:36:12 +0000 Subject: [PATCH] Fix clippy warning in nodes.rs Rust 1.66 (or rather, the clippy bundled with it) adds a new clippy check called `clippy::explicit-auto-deref`. This commit fixes an instance of it in nodes.rs --- src/nodes.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nodes.rs b/src/nodes.rs index b78f4c7..6067f51 100644 --- a/src/nodes.rs +++ b/src/nodes.rs @@ -939,7 +939,7 @@ impl Node { let topic_types: Vec = unsafe { topic_types .iter() - .map(|t| CStr::from_ptr(*((*t).data)).to_str().unwrap().to_owned()) + .map(|t| CStr::from_ptr(*(t.data)).to_str().unwrap().to_owned()) .collect() }; res.insert(topic_name, topic_types);