1
0
mirror of https://github.com/matrix-org/matrix-authentication-service.git synced 2025-07-29 22:01:14 +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 // Do not edit this file manually
use schemars::JsonSchema; use schemars::JsonSchema;
use serde::{{Deserialize, Serialize}}; use serde::{{Deserialize, Serialize}};"#
"#
)?; )?;
for key in &self.sections { for key in &self.sections {
@ -125,6 +124,7 @@ use serde::{{Deserialize, Serialize}};
continue; continue;
}; };
writeln!(f)?;
writeln!( writeln!(
f, f,
"#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash, Serialize, Deserialize, JsonSchema)]" "#[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, " {},", member.enum_name)?;
} }
writeln!(f, "}}")?; writeln!(f, "}}")?;
writeln!(f)?;
} }
Ok(()) Ok(())

View File

@ -303,4 +303,3 @@ pub enum JsonWebKeyOperation {
#[serde(rename = "deriveBits")] #[serde(rename = "deriveBits")]
DeriveBits, DeriveBits,
} }

View File

@ -97,4 +97,3 @@ pub enum PkceCodeChallengeMethod {
#[serde(rename = "S256")] #[serde(rename = "S256")]
S256, S256,
} }