You've already forked authentication-service
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:
@ -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(())
|
||||
|
@ -303,4 +303,3 @@ pub enum JsonWebKeyOperation {
|
||||
#[serde(rename = "deriveBits")]
|
||||
DeriveBits,
|
||||
}
|
||||
|
||||
|
@ -97,4 +97,3 @@ pub enum PkceCodeChallengeMethod {
|
||||
#[serde(rename = "S256")]
|
||||
S256,
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user