Skip to content

Commit aa94eb6

Browse files
committed
fix(ddtelemetry: info): kernel info useless slice
1 parent 6c0d362 commit aa94eb6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ddtelemetry/src/info.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ pub mod os {
3737
let mut n = std::mem::zeroed();
3838
match libc::uname(&mut n) {
3939
0 => Some(
40-
CStr::from_ptr((n.version[..]).as_ptr())
40+
CStr::from_ptr(n.version.as_ptr())
4141
.to_string_lossy()
4242
.into_owned(),
4343
),

0 commit comments

Comments
 (0)