Skip to content

Commit a4a3517

Browse files
committed
style: Remove unused structs
`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); | ^^^^^^^^^^^^ ```
1 parent 3090e0a commit a4a3517

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

graphql_client_codegen/src/schema.rs

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,6 @@ use std::collections::{BTreeMap, BTreeSet};
1010

1111
pub(crate) const DEFAULT_SCALARS: &[&str] = &["ID", "String", "Int", "Float", "Boolean"];
1212

13-
#[derive(Debug, PartialEq, Clone)]
14-
struct StoredObjectField {
15-
name: String,
16-
object: ObjectId,
17-
}
18-
1913
#[derive(Debug, PartialEq, Clone)]
2014
pub(crate) struct StoredObject {
2115
pub(crate) name: String,
@@ -47,9 +41,6 @@ pub(crate) enum StoredFieldParent {
4741
#[derive(Debug, Clone, Copy, PartialEq, Hash, Eq, PartialOrd, Ord)]
4842
pub(crate) struct ObjectId(u32);
4943

50-
#[derive(Debug, Clone, Copy, PartialEq, Hash, Eq)]
51-
pub(crate) struct ObjectFieldId(usize);
52-
5344
#[derive(Debug, Clone, Copy, PartialEq, Hash, Eq, PartialOrd, Ord)]
5445
pub(crate) struct InterfaceId(usize);
5546

@@ -68,9 +59,6 @@ pub(crate) struct InputId(u32);
6859
#[derive(Debug, Clone, Copy, PartialEq)]
6960
pub(crate) struct StoredFieldId(usize);
7061

71-
#[derive(Debug, Clone, Copy, PartialEq)]
72-
struct InputFieldId(usize);
73-
7462
#[derive(Debug, Clone, PartialEq)]
7563
pub(crate) struct StoredInterface {
7664
name: String,

0 commit comments

Comments
 (0)