1
0
mirror of https://github.com/matrix-org/matrix-authentication-service.git synced 2025-07-28 11:02:02 +03:00

Fix generated code style

This commit is contained in:
Quentin Gliech
2022-01-11 19:19:02 +01:00
parent 9003eaf0c2
commit d9b1ef3ded
3 changed files with 2 additions and 5 deletions

View File

@ -114,8 +114,7 @@ impl Display for File {
// Do not edit this file manually
use schemars::JsonSchema;
use serde::{{Deserialize, Serialize}};
"#
use serde::{{Deserialize, Serialize}};"#
)?;
for key in &self.sections {
@ -125,6 +124,7 @@ use serde::{{Deserialize, Serialize}};
continue;
};
writeln!(f)?;
writeln!(
f,
"#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash, Serialize, Deserialize, JsonSchema)]"
@ -139,7 +139,6 @@ use serde::{{Deserialize, Serialize}};
writeln!(f, " {},", member.enum_name)?;
}
writeln!(f, "}}")?;
writeln!(f)?;
}
Ok(())