Skip to content

Commit

Permalink
Fix warnings via codegen
Browse files Browse the repository at this point in the history
Signed-off-by: Nick Cameron <[email protected]>
  • Loading branch information
nrc committed Dec 4, 2024
1 parent f8119f5 commit 24e5d53
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 25 deletions.
36 changes: 17 additions & 19 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions kittycad/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ version = "0.3.27"
documentation = "https://docs.rs/kittycad"
readme = "README.md"
repository = "https://github.com/KittyCAD/kittycad.rs/tree/main/kittycad"
edition = "2018"
edition = "2021"
license = "MIT"

[dependencies]
Expand Down Expand Up @@ -36,8 +36,8 @@ serde = { version = "1", features = ["derive"] }
serde_bytes = "0.11"
serde_json = "1"
serde_urlencoded = { version = "^0.7", optional = true }
tabled = { version = "0.16.0", features = ["ansi"], optional = true }
thiserror = "1"
tabled = { version = "0.17.0", features = ["ansi"], optional = true }
thiserror = "2"
tracing = { version = "^0.1", optional = true }
url = { version = "2", features = ["serde"] }
uuid = { version = "1", features = ["serde", "v4", "v7"] }
Expand Down
2 changes: 2 additions & 0 deletions kittycad/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,9 @@
//!
//! let client = Client::new_from_env();
//! ```
#![allow(elided_named_lifetimes)]
#![allow(missing_docs)]
#![allow(unused_imports)]
#![allow(clippy::needless_lifetimes)]
#![allow(clippy::too_many_arguments)]
#![cfg_attr(docsrs, feature(doc_cfg))]
Expand Down
2 changes: 2 additions & 0 deletions kittycad/src/types.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#![doc = r" This module contains the generated types for the library."]
#[cfg(feature = "tabled")]
use tabled::Tabled;
pub mod base64 {
#![doc = " Base64 data that encodes to url safe base64, but can decode from multiple"]
#![doc = " base64 implementations to account for various clients and libraries. Compatible"]
Expand Down
8 changes: 5 additions & 3 deletions openapitor/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,9 @@ fn internal_generate(spec: &openapiv3::OpenAPI, opts: &Opts) -> Result<String> {
/*
* Deal with any dependencies we require to produce this client.
*/
a("#![allow(elided_named_lifetimes)]");
a("#![allow(missing_docs)]"); // TODO: Make this a deny.
a("#![allow(unused_imports)]");
a("#![allow(clippy::needless_lifetimes)]"); // TODO: Fix this.
a("#![allow(clippy::too_many_arguments)]"); // TODO: Fix this.

Expand Down Expand Up @@ -581,7 +583,7 @@ version = "{}"
documentation = "https://docs.rs/{}"
readme = "README.md"
{}
edition = "2018"
edition = "2021"
license = "MIT"
[dependencies]
Expand Down Expand Up @@ -612,8 +614,8 @@ serde = {{ version = "1", features = ["derive"] }}
serde_bytes = "0.11"
serde_json = "1"
serde_urlencoded = {{ version = "^0.7", optional = true }}
tabled = {{ version = "0.16.0", features = ["ansi"], optional = true }}
thiserror = "1"
tabled = {{ version = "0.17.0", features = ["ansi"], optional = true }}
thiserror = "2"
tracing = {{ version = "^0.1", optional = true }}
url = {{ version = "2", features = ["serde"] }}
uuid = {{ version = "1", features = ["serde", "v4", "v7"] }}
Expand Down

0 comments on commit 24e5d53

Please sign in to comment.