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
This commit is contained in:
Ricardo Delfin 2023-01-13 16:36:12 +00:00 committed by GitHub
parent e707ee86a1
commit a2ccc774cd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -939,7 +939,7 @@ impl Node {
let topic_types: Vec<String> = 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);