]> saetta.ns0.it Git - rust/zakform/commitdiff
c2rs: typo.
authorAndrea Zagli <azagli@libero.it>
Sun, 21 Jan 2024 08:38:04 +0000 (09:38 +0100)
committerAndrea Zagli <azagli@libero.it>
Sun, 21 Jan 2024 08:38:04 +0000 (09:38 +0100)
src/bin/c2rs.rs

index 94e533a3ee281b131d9d5796f2cb6bf48106e0b3..0718798495d0f79a2aff19a561f271167bbf5c53 100644 (file)
@@ -271,7 +271,7 @@ fn main() {
                                        };
 
                                        if validator.value_comp != "" {
-                                               writeln!(output, r#"v.set_compare_value(Some("{}"));"#, validator.value_comp);
+                                               writeln!(output, r#"v.set_compare_value(Some(String::from("{}")));"#, validator.value_comp);
                                        }
 
                                        writeln!(output, "fi.add_validator(Box::new(v));");