Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

style: Remove unused structs #495

Merged
merged 1 commit into from
Oct 24, 2024
Merged

Conversation

caspermeijn
Copy link
Contributor

cargo clippy reports:

error: struct `StoredObjectField` is never constructed
  --> graphql_client_codegen/src/schema.rs:14:8
   |
14 | struct StoredObjectField {
   |        ^^^^^^^^^^^^^^^^^
   |
   = note: `-D dead-code` implied by `-D warnings`
   = help: to override `-D warnings` add `#[allow(dead_code)]`

error: struct `ObjectFieldId` is never constructed
  --> graphql_client_codegen/src/schema.rs:51:19
   |
51 | pub(crate) struct ObjectFieldId(usize);
   |                   ^^^^^^^^^^^^^

error: struct `InputFieldId` is never constructed
  --> graphql_client_codegen/src/schema.rs:72:8
   |
72 | struct InputFieldId(usize);
   |        ^^^^^^^^^^^^

`cargo clippy` reports:

```
error: struct `StoredObjectField` is never constructed
  --> graphql_client_codegen/src/schema.rs:14:8
   |
14 | struct StoredObjectField {
   |        ^^^^^^^^^^^^^^^^^
   |
   = note: `-D dead-code` implied by `-D warnings`
   = help: to override `-D warnings` add `#[allow(dead_code)]`

error: struct `ObjectFieldId` is never constructed
  --> graphql_client_codegen/src/schema.rs:51:19
   |
51 | pub(crate) struct ObjectFieldId(usize);
   |                   ^^^^^^^^^^^^^

error: struct `InputFieldId` is never constructed
  --> graphql_client_codegen/src/schema.rs:72:8
   |
72 | struct InputFieldId(usize);
   |        ^^^^^^^^^^^^
```
@tomhoule tomhoule merged commit 0c52c4c into graphql-rust:main Oct 24, 2024
@caspermeijn caspermeijn deleted the clippy branch October 25, 2024 10:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants