Skip to content

Commit

Permalink
style(lib): remove some unnecessary extra calls
Browse files Browse the repository at this point in the history
  • Loading branch information
hasezoey committed Sep 4, 2023
1 parent 9614662 commit 4f1d78d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ pub fn generate_files(
table_mod_rs.ensure_use_stmt("generated::*");
table_mod_rs.write()?;

mod_rs.ensure_mod_stmt(table.name.to_string().as_str());
mod_rs.ensure_mod_stmt(&table.name.to_string());
}

// pass 2: delete code for removed tables
Expand Down

0 comments on commit 4f1d78d

Please sign in to comment.