Skip to content

Commit

Permalink
Remove warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
YuhanLiin committed Jul 12, 2024
1 parent d520f7f commit 938cb35
Show file tree
Hide file tree
Showing 20 changed files with 21 additions and 21 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ use micropb::{PbRead, PbDecoder, MessageDecode, MessageEncode};
mod example {
#![allow(clippy::all)]
#![allow(nonstandard_style, dead_code, unused_imports)]
#![allow(nonstandard_style, unused, irrefutable_let_patterns)]
// Let's assume that Example is the only message define in the .proto file that has been
// converted into a Rust struct
include!(concat!(env!("OUT_DIR"), "/example.rs"));
Expand Down
2 changes: 1 addition & 1 deletion examples/no-panicking/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use no_panic::no_panic;

mod proto {
#![allow(clippy::all)]
#![allow(nonstandard_style, dead_code, unused_imports)]
#![allow(nonstandard_style, unused, irrefutable_let_patterns)]
include!(concat!(env!("OUT_DIR"), "/gps_example.rs"));
}

Expand Down
2 changes: 1 addition & 1 deletion tests/basic-proto/src/boxed_and_option.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use micropb::{MessageDecode, MessageEncode, PbDecoder, PbEncoder};

mod proto {
#![allow(clippy::all)]
#![allow(nonstandard_style, dead_code, unused_imports)]
#![allow(nonstandard_style, unused, irrefutable_let_patterns)]
include!(concat!(env!("OUT_DIR"), "/boxed_and_option.rs"));
}

Expand Down
2 changes: 1 addition & 1 deletion tests/basic-proto/src/conflicting_names.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
mod proto {
#![allow(clippy::all)]
#![allow(nonstandard_style, dead_code, unused_imports)]
#![allow(nonstandard_style, unused, irrefutable_let_patterns)]
include!(concat!(env!("OUT_DIR"), "/conflicting_names.rs"));
}

Expand Down
2 changes: 1 addition & 1 deletion tests/basic-proto/src/container_alloc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ use micropb::{MessageDecode, MessageEncode, PbDecoder, PbEncoder};

mod proto {
#![allow(clippy::all)]
#![allow(nonstandard_style, dead_code, unused_imports)]
#![allow(nonstandard_style, unused, irrefutable_let_patterns)]
include!(concat!(env!("OUT_DIR"), "/container_alloc.rs"));
}

Expand Down
2 changes: 1 addition & 1 deletion tests/basic-proto/src/container_arrayvec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ use std::mem::{size_of, size_of_val};

mod proto {
#![allow(clippy::all)]
#![allow(nonstandard_style, dead_code, unused_imports)]
#![allow(nonstandard_style, unused, irrefutable_let_patterns)]
include!(concat!(env!("OUT_DIR"), "/container_arrayvec.rs"));
}

Expand Down
2 changes: 1 addition & 1 deletion tests/basic-proto/src/container_heapless.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use micropb::{DecodeError, MessageDecode, PbDecoder};

mod proto {
#![allow(clippy::all)]
#![allow(nonstandard_style, dead_code, unused_imports)]
#![allow(nonstandard_style, unused, irrefutable_let_patterns)]
include!(concat!(env!("OUT_DIR"), "/container_heapless.rs"));
}

Expand Down
2 changes: 1 addition & 1 deletion tests/basic-proto/src/custom_field.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ use micropb::{

mod proto {
#![allow(clippy::all)]
#![allow(nonstandard_style, dead_code, unused_imports)]
#![allow(nonstandard_style, unused, irrefutable_let_patterns)]
include!(concat!(env!("OUT_DIR"), "/custom_field.rs"));
}

Expand Down
2 changes: 1 addition & 1 deletion tests/basic-proto/src/default_str_escape.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
mod proto {
#![allow(clippy::all)]
#![allow(nonstandard_style, dead_code, unused_imports)]
#![allow(nonstandard_style, unused, irrefutable_let_patterns)]
include!(concat!(env!("OUT_DIR"), "/default_str_escape.rs"));
}

Expand Down
2 changes: 1 addition & 1 deletion tests/basic-proto/src/extern_import.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ use micropb::{DecodeError, MessageDecode, MessageEncode, PbDecoder, PbEncoder};

mod proto {
#![allow(clippy::all)]
#![allow(nonstandard_style, dead_code, unused_imports)]
#![allow(nonstandard_style, unused, irrefutable_let_patterns)]
include!(concat!(env!("OUT_DIR"), "/import_basic.rs"));
include!(concat!(env!("OUT_DIR"), "/import_nested.rs"));
}
Expand Down
2 changes: 1 addition & 1 deletion tests/basic-proto/src/implicit_presence.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ use micropb::{MessageDecode, MessageEncode, PbDecoder, PbEncoder};

mod proto {
#![allow(clippy::all)]
#![allow(nonstandard_style, dead_code, unused_imports)]
#![allow(nonstandard_style, unused, irrefutable_let_patterns)]
include!(concat!(env!("OUT_DIR"), "/implicit_presence.rs"));
}

Expand Down
2 changes: 1 addition & 1 deletion tests/basic-proto/src/int_type.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use micropb::{MessageDecode, MessageEncode, PbDecoder, PbEncoder};

mod proto {
#![allow(clippy::all)]
#![allow(nonstandard_style, dead_code, unused_imports)]
#![allow(nonstandard_style, unused, irrefutable_let_patterns)]
include!(concat!(env!("OUT_DIR"), "/int_type.rs"));
}

Expand Down
2 changes: 1 addition & 1 deletion tests/basic-proto/src/keyword_fields.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
mod proto {
#![allow(clippy::all)]
#![allow(nonstandard_style, dead_code, unused_imports)]
#![allow(nonstandard_style, unused, irrefutable_let_patterns)]
include!(concat!(env!("OUT_DIR"), "/keyword_fields.rs"));
}

Expand Down
2 changes: 1 addition & 1 deletion tests/basic-proto/src/lifetime_fields.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ use micropb::FieldEncode;

mod proto {
#![allow(clippy::all)]
#![allow(nonstandard_style, dead_code, unused_imports)]
#![allow(nonstandard_style, unused, irrefutable_let_patterns)]
include!(concat!(env!("OUT_DIR"), "/lifetime_fields.rs"));
}

Expand Down
2 changes: 1 addition & 1 deletion tests/basic-proto/src/no_config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ use micropb::{DecodeError, MessageDecode, MessageEncode, PbDecoder, PbEncoder};

mod proto {
#![allow(clippy::all)]
#![allow(nonstandard_style, dead_code, unused_imports)]
#![allow(nonstandard_style, unused, irrefutable_let_patterns)]
include!(concat!(env!("OUT_DIR"), "/no_config.rs"));
}

Expand Down
2 changes: 1 addition & 1 deletion tests/basic-proto/src/recursive.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ use proto::Recursive;

mod proto {
#![allow(clippy::all)]
#![allow(nonstandard_style, dead_code, unused_imports)]
#![allow(nonstandard_style, unused, irrefutable_let_patterns)]
include!(concat!(env!("OUT_DIR"), "/recursive.rs"));
}

Expand Down
2 changes: 1 addition & 1 deletion tests/basic-proto/src/skip.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ use std::mem::size_of;

mod proto {
#![allow(clippy::all)]
#![allow(nonstandard_style, dead_code, unused_imports)]
#![allow(nonstandard_style, unused, irrefutable_let_patterns)]
include!(concat!(env!("OUT_DIR"), "/skip.rs"));
}

Expand Down
2 changes: 1 addition & 1 deletion tests/decode-only/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use micropb::MessageDecode;

mod example {
#![allow(clippy::all)]
#![allow(nonstandard_style, dead_code, unused_imports)]
#![allow(nonstandard_style, unused, irrefutable_let_patterns)]
include!(concat!(env!("OUT_DIR"), "/decode_only.rs"));
}

Expand Down
2 changes: 1 addition & 1 deletion tests/encode-only/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use micropb::MessageEncode;

mod example {
#![allow(clippy::all)]
#![allow(nonstandard_style, dead_code, unused_imports)]
#![allow(nonstandard_style, unused, irrefutable_let_patterns)]
include!(concat!(env!("OUT_DIR"), "/encode_only.rs"));
}

Expand Down
4 changes: 2 additions & 2 deletions tests/serde-proto/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#[no_std]
#![no_std]

mod proto {
#![allow(clippy::all)]
#![allow(nonstandard_style, dead_code, unused_imports)]
#![allow(nonstandard_style, unused, irrefutable_let_patterns)]
include!(concat!(env!("OUT_DIR"), "/serde_proto.rs"));
}

Expand Down

0 comments on commit 938cb35

Please sign in to comment.