Skip to content

Commit 8f9c9e8

Browse files
committed
Clippy lint
1 parent 3f944c1 commit 8f9c9e8

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

netcdf/src/attribute.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,6 @@ impl<'a> Attribute<'a> {
363363
}
364364
NC_STRING => {
365365
let mut buf: Vec<*mut c_char> = vec![std::ptr::null_mut(); attlen];
366-
let result;
367366
checked_with_lock(|| unsafe {
368367
nc_get_att_string(
369368
self.ncid,
@@ -372,7 +371,7 @@ impl<'a> Attribute<'a> {
372371
buf.as_mut_ptr().cast(),
373372
)
374373
})?;
375-
result = buf
374+
let result = buf
376375
.iter()
377376
.map(|cstr_pointer| unsafe {
378377
if cstr_pointer.is_null() {

0 commit comments

Comments
 (0)