We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6c0d362 commit aa94eb6Copy full SHA for aa94eb6
ddtelemetry/src/info.rs
@@ -37,7 +37,7 @@ pub mod os {
37
let mut n = std::mem::zeroed();
38
match libc::uname(&mut n) {
39
0 => Some(
40
- CStr::from_ptr((n.version[..]).as_ptr())
+ CStr::from_ptr(n.version.as_ptr())
41
.to_string_lossy()
42
.into_owned(),
43
),
0 commit comments