]> saetta.ns0.it Git - rust/zakform/commitdiff
c2rs: missing NaiveDateTime type.
authorAndrea Zagli <azagli@libero.it>
Fri, 10 May 2024 10:11:34 +0000 (12:11 +0200)
committerAndrea Zagli <azagli@libero.it>
Fri, 10 May 2024 10:11:34 +0000 (12:11 +0200)
src/bin/c2rs.rs

index ce3a4e43e50b948417dfbcc740b3f04f969bf04d..a34f0712a396f339795137feeb048b78e10eebc3 100644 (file)
@@ -164,7 +164,7 @@ fn main() {
        writeln!(output, "use sqlx::FromRow;");
        writeln!(output, "");
 
-       writeln!(output, "use chrono::NaiveDate;");
+       writeln!(output, "use chrono::{{NaiveDate, NaiveDateTime}};");
        writeln!(output, "");
 
        writeln!(output, "use zakform::fields::{{TField, FOption}};");