clippy
This commit is contained in:
parent
596afd2081
commit
ccca35ab1a
@ -202,8 +202,8 @@ impl EntityTransformer {
|
||||
}
|
||||
Ok(EntityWriter {
|
||||
entities: entities
|
||||
.into_iter()
|
||||
.map(|(_, mut v)| {
|
||||
.into_values()
|
||||
.map(|mut v| {
|
||||
v.relations.sort_by(|a, b| a.ref_table.cmp(&b.ref_table));
|
||||
v
|
||||
})
|
||||
|
@ -225,8 +225,8 @@ impl EntityWriter {
|
||||
lines.push("".to_owned());
|
||||
let code_blocks = self
|
||||
.enums
|
||||
.iter()
|
||||
.map(|(_, active_enum)| active_enum.impl_active_enum(with_serde, with_copy_enums))
|
||||
.values()
|
||||
.map(|active_enum| active_enum.impl_active_enum(with_serde, with_copy_enums))
|
||||
.collect();
|
||||
Self::write(&mut lines, code_blocks);
|
||||
OutputFile {
|
||||
|
@ -45,8 +45,8 @@ where
|
||||
let query = self
|
||||
.query
|
||||
.clone()
|
||||
.limit(self.page_size as u64)
|
||||
.offset((self.page_size * page) as u64)
|
||||
.limit(self.page_size)
|
||||
.offset(self.page_size * page)
|
||||
.to_owned();
|
||||
let builder = self.db.get_database_backend();
|
||||
let stmt = builder.build(&query);
|
||||
|
Loading…
x
Reference in New Issue
Block a user