aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--build.rs5
1 files changed, 2 insertions, 3 deletions
diff --git a/build.rs b/build.rs
index cce8118..017fb66 100644
--- a/build.rs
+++ b/build.rs
@@ -16,9 +16,8 @@ use serde_json::Value;
include!(concat!(env!("CARGO_MANIFEST_DIR"), "/src/perfcnt/intel/description.rs"));
-/// We need to convert parsed strings to static because we're reusing
-/// the struct definition which declare strings (rightfully) as
-/// static in the generated code.
+/// HACK: We need to convert parsed strings to static because we're reusing
+/// the struct definition which declare strings as static in the generated code.
fn string_to_static_str<'a>(s: &'a str) -> &'static str {
unsafe {
let ret = mem::transmute(&s as &str);