Skip to content

Commit

Permalink
Bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
Rexagon committed Mar 25, 2024
1 parent c05cc77 commit ab5aa61
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 13 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name = "tl-proto"
description = "A collection of traits for working with TL serialization/deserialization"
authors = ["Ivan Kalinin <i.kalinin@dexpa.io>"]
repository = "https://github.com/broxus/tl-proto"
version = "0.4.4"
version = "0.4.5"
edition = "2021"
include = ["src/**/*.rs", "README.md"]
license = "MIT"
Expand Down
12 changes: 0 additions & 12 deletions proc/src/internals/attr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,6 @@ use syn::meta::ParseNestedMeta;
use super::ctxt::*;
use super::symbol::*;

pub struct IdMacroInput(Vec<LegacyMeta>);

impl syn::parse::Parse for IdMacroInput {
fn parse(input: syn::parse::ParseStream) -> syn::Result<Self> {
Ok(Self(
syn::punctuated::Punctuated::<LegacyMeta, syn::Token!(,)>::parse_terminated(input)?
.into_iter()
.collect(),
))
}
}

pub enum LegacyMeta {
Lit(syn::Lit),
NameValue(syn::MetaNameValue),
Expand Down
2 changes: 2 additions & 0 deletions test_suite/tests/tl_write.rs
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ mod tests {
enum EnumWithFlags {
Named {
#[tl(flags)]
#[allow(unused)]
flags: (),
#[tl(flags_bit = 0)]
value_1: Option<u32>,
Expand All @@ -114,6 +115,7 @@ mod tests {
#[derive(TlWrite)]
struct StructWithMultipleFlags {
#[tl(flags, default_flags = 0x40000000)]
#[allow(unused)]
flags: (),
#[tl(flags_bit = "flags.0")]
value_0: Option<u32>,
Expand Down

0 comments on commit ab5aa61

Please sign in to comment.