Skip to content

Commit acd828f

Browse files
Format Rust code using rustfmt
1 parent be72348 commit acd828f

File tree

2 files changed

+5
-8
lines changed

2 files changed

+5
-8
lines changed

src/run.rs

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -468,15 +468,15 @@ pub fn run(
468468
infer = true;
469469
}
470470
if infer == true {
471-
if contents[x+3] == "[" {
471+
if contents[x + 3] == "[" {
472472
memory_types.push(String::from("arr"));
473473
memory_names.push(contents[position + 1].clone());
474474
position += 1;
475-
} else if contents[x+3] == "\""{
475+
} else if contents[x + 3] == "\"" {
476476
memory_types.push(String::from("str"));
477477
memory_names.push(contents[position + 1].clone());
478478
position += 1;
479-
} else if contents[x+3] == "{" {
479+
} else if contents[x + 3] == "{" {
480480
memory_types.push(String::from("grp"));
481481
memory_names.push(contents[position + 1].clone());
482482
position += 1;
@@ -505,7 +505,7 @@ pub fn run(
505505
pass_vec.push("a".to_string());
506506
pass_vec.push("(".to_string());
507507

508-
if memory_types[memory_types.len()-1] == "int"{
508+
if memory_types[memory_types.len() - 1] == "int" {
509509
pass_vec.push("math".to_string());
510510
pass_vec.push("(".to_string())
511511
}
@@ -516,7 +516,7 @@ pub fn run(
516516
pass_vec.push(contents[position].clone().to_string());
517517
position += 1;
518518
}
519-
if memory_types[memory_types.len()-1] == "int"{
519+
if memory_types[memory_types.len() - 1] == "int" {
520520
pass_vec.push(")".to_string());
521521
}
522522
pass_vec.push(")".to_string());
@@ -1175,8 +1175,6 @@ pub fn run(
11751175
uses.clone(),
11761176
0,
11771177
)
1178-
1179-
11801178
.join("zzGVgfHaNtPMe7H9RRyx3rWC9JyyZdMkc2v")
11811179
.to_string();
11821180
let mut new_value = memory_values[postion]

src/run/functions.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1575,7 +1575,6 @@ pub fn split_k(
15751575
items
15761576
.join("zzGVgfHaNtPMe7H9RRyx3rWC9JyyZdMkc2v")
15771577
.replace(&replacer, &replaced)
1578-
15791578
.strip_prefix("zzGVgfHaNtPMe7H9RRyx3rWC9JyyZdMkc2v")
15801579
.unwrap()
15811580
.strip_suffix("zzGVgfHaNtPMe7H9RRyx3rWC9JyyZdMkc2v")

0 commit comments

Comments
 (0)