You've already forked authentication-service
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:
@ -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(())
|
||||
|
Reference in New Issue
Block a user