mirror of
https://github.com/kmc7468/cs420.git
synced 2025-12-16 07:28:52 +00:00
Bump Rust and add skeleton code for irgen.
This commit is contained in:
@@ -19,8 +19,8 @@ fn modify_c(path: &Path, rand_num: i32) -> String {
|
||||
.expect("`src` must be converted to string");
|
||||
drop(src);
|
||||
|
||||
let from = format!("int {} = 1", NONCE_NAME);
|
||||
let to = format!("int {} = {}", NONCE_NAME, rand_num);
|
||||
let from = format!("int {NONCE_NAME} = 1");
|
||||
let to = format!("int {NONCE_NAME} = {rand_num}");
|
||||
data.replace(&from, &to)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user