Skip to content

Commit

Permalink
Don't use C string literals in 0.20 yet
Browse files Browse the repository at this point in the history
They require too new Rust.
  • Loading branch information
sdroege committed Dec 16, 2024
1 parent 1d9ae47 commit e06125d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/writer/to_code.rs
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ impl ToCode for Chunk {
);
} else {
v.push(format!(
"connect_raw(self.as_ptr() as *mut _, c\"{signal}\".as_ptr() as *const _,"
"connect_raw(self.as_ptr() as *mut _, b\"{signal}\\0\".as_ptr() as *const _,"
));
}
let self_str = if in_trait { "Self, " } else { "" };
Expand Down

0 comments on commit e06125d

Please sign in to comment.