Skip to content

Commit

Permalink
Lint with clippy.
Browse files Browse the repository at this point in the history
  • Loading branch information
wojciech-graj committed Nov 10, 2024
1 parent 644026f commit 9fabdcc
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion bin-proto-derive/src/attr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ impl TryFrom<&[syn::Attribute]> for Attrs {
attribs.tag = Some(Tag::Prepend {
typ: tag_type,
write_value: tag_value,
})
});
}
(None, None, None) => {}
_ => return Err(Error::new(attrs[0].span(), "TODO")),
Expand Down
2 changes: 1 addition & 1 deletion bin-proto/src/bit_field.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ pub trait BitFieldWrite<Ctx = ()> {
/// ```compile_fail
/// # use bin_proto::{ProtocolRead, ProtocolWrite};
/// #[derive(ProtocolRead, ProtocolWrite)]
/// #[protocol(discriminant_type = "u8")]
/// #[protocol(discriminant_type = u8)]
/// #[protocol(bits = 1)]
/// enum WontFit {
/// Variant = 2,
Expand Down
2 changes: 1 addition & 1 deletion bin-proto/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ pub extern crate bitstream_io;
/// struct MutuallyExclusiveAttrs {
/// pub length: u8,
/// #[protocol(flexible_array_member)]
/// #[protocol(tag = "length as usize")]
/// #[protocol(tag = length as usize)]
/// pub reason: String,
/// }
/// ```
Expand Down

0 comments on commit 9fabdcc

Please sign in to comment.