Skip to content

Commit

Permalink
typo
Browse files Browse the repository at this point in the history
  • Loading branch information
RuofengX committed Oct 19, 2024
1 parent c39dee1 commit fa9f2ad
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/grammers-tl-gen/src/structs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ fn write_struct<W: Write>(
}
ParameterType::Normal { ty, .. } => {
if config.impl_serde && ty.name.as_str() == "bytes" {
writeln!(file, "{} #[cfg_attr(feature = \"impl-serde\", serde(with = \"serde_bytes\")]", indent)?;
writeln!(file, "{} #[cfg_attr(feature = \"impl-serde\", serde(with = \"serde_bytes\"))]", indent)?;
}
writeln!(
file,
Expand Down
2 changes: 1 addition & 1 deletion lib/grammers-tl-types/tests/serde.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ impl Scanner {
if Self::BYTES_PATTERN.contains(&ty) {
let result = self
.last_line
.contains("#[cfg_attr(feature = \"impl-serde\", serde(with = \"serde_bytes\")]");
.contains("#[cfg_attr(feature = \"impl-serde\", serde(with = \"serde_bytes\"))]");
if !result {
eprintln!("{}", self.last_line);
eprintln!("{}", line);
Expand Down

0 comments on commit fa9f2ad

Please sign in to comment.