Skip to content

Commit b047e29

Browse files
committed
Hide warnings about non-camel-case-types
1 parent d433dbc commit b047e29

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

generate.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,9 @@ find src/ -type f -name "*.rs" -exec sed -i 's/models::models/models/g' {} +
4545

4646
find src/ -type f -name "*.rs" -exec sed -i 's/multipart_form\.text("data", p_form_data\.to_string())/multipart_form.text("data", serde_json::to_string_pretty(\&p_form_data)?)/g' {} +
4747

48+
#Hide warnings about unused variables and non-rusty type names
49+
sed -i 's/#!\[allow(unused_imports)\]/#![allow(unused_imports)]\n#![allow(non_camel_case_types)]/' src/lib.rs
50+
4851
cargo fmt
4952
cargo build
5053
cargo test

src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#![allow(unused_imports)]
2+
#![allow(non_camel_case_types)]
23
#![allow(clippy::too_many_arguments)]
34

45
extern crate reqwest;

0 commit comments

Comments
 (0)