Skip to content

fix: add lint ignores to paperclip unit struct (#514) #104

fix: add lint ignores to paperclip unit struct (#514)

fix: add lint ignores to paperclip unit struct (#514) #104

GitHub Actions / clippy failed Mar 1, 2024 in 0s

clippy

42 errors, 3 warnings

Details

Results

Message level Amount
Internal compiler error 0
Error 42
Warning 3
Note 0
Help 0

Versions

  • rustc 1.78.0-nightly (878c8a2a6 2024-02-29)
  • cargo 1.78.0-nightly (8964c8ccf 2024-02-27)
  • clippy 0.1.78 (878c8a2 2024-02-29)

Annotations

Check failure on line 9 in core/src/v3/tag.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

mismatched types

error[E0308]: mismatched types
  --> core/src/v3/tag.rs:9:25
   |
9  |             extensions: indexmap::IndexMap::new(),
   |                         ^^^^^^^^^^^^^^^^^^^^^^^^^ expected `IndexMap<String, Value>`, found `IndexMap<_, _>`
   |
   = note: `indexmap::IndexMap<_, _>` and `IndexMap<String, Value>` have similar names, but are actually distinct types
note: `indexmap::IndexMap<_, _>` is defined in crate `indexmap`
  --> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/indexmap-2.2.5/src/map.rs:85:1
   |
85 | pub struct IndexMap<K, V, S = RandomState> {
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
note: `IndexMap<String, Value>` is defined in crate `indexmap`
  --> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/indexmap-1.9.3/src/map.rs:71:1
   |
71 | pub struct IndexMap<K, V, S = RandomState> {
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   = note: perhaps two different versions of crate `indexmap` are being used?

Check failure on line 60 in core/src/v3/security_scheme.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

mismatched types

error[E0308]: mismatched types
  --> core/src/v3/security_scheme.rs:60:33
   |
60 | ...                   scopes,
   |                       ^^^^^^ expected `IndexMap<String, String>`, found a different `IndexMap<String, String>`
   |
   = note: `IndexMap<String, String>` and `IndexMap<String, String>` have similar names, but are actually distinct types
note: `IndexMap<String, String>` is defined in crate `indexmap`
  --> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/indexmap-2.2.5/src/map.rs:85:1
   |
85 | pub struct IndexMap<K, V, S = RandomState> {
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
note: `IndexMap<String, String>` is defined in crate `indexmap`
  --> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/indexmap-1.9.3/src/map.rs:71:1
   |
71 | pub struct IndexMap<K, V, S = RandomState> {
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   = note: perhaps two different versions of crate `indexmap` are being used?

Check failure on line 51 in core/src/v3/security_scheme.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

mismatched types

error[E0308]: mismatched types
  --> core/src/v3/security_scheme.rs:51:41
   |
51 | ...                   scopes: scopes.clone(),
   |                               ^^^^^^^^^^^^^^ expected `IndexMap<String, String>`, found a different `IndexMap<String, String>`
   |
   = note: `IndexMap<String, String>` and `IndexMap<String, String>` have similar names, but are actually distinct types
note: `IndexMap<String, String>` is defined in crate `indexmap`
  --> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/indexmap-2.2.5/src/map.rs:85:1
   |
85 | pub struct IndexMap<K, V, S = RandomState> {
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
note: `IndexMap<String, String>` is defined in crate `indexmap`
  --> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/indexmap-1.9.3/src/map.rs:71:1
   |
71 | pub struct IndexMap<K, V, S = RandomState> {
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   = note: perhaps two different versions of crate `indexmap` are being used?

Check failure on line 43 in core/src/v3/security_scheme.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

mismatched types

error[E0308]: mismatched types
  --> core/src/v3/security_scheme.rs:43:41
   |
43 | ...                   scopes: scopes.clone(),
   |                               ^^^^^^^^^^^^^^ expected `IndexMap<String, String>`, found a different `IndexMap<String, String>`
   |
   = note: `IndexMap<String, String>` and `IndexMap<String, String>` have similar names, but are actually distinct types
note: `IndexMap<String, String>` is defined in crate `indexmap`
  --> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/indexmap-2.2.5/src/map.rs:85:1
   |
85 | pub struct IndexMap<K, V, S = RandomState> {
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
note: `IndexMap<String, String>` is defined in crate `indexmap`
  --> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/indexmap-1.9.3/src/map.rs:71:1
   |
71 | pub struct IndexMap<K, V, S = RandomState> {
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   = note: perhaps two different versions of crate `indexmap` are being used?

Check failure on line 35 in core/src/v3/security_scheme.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

mismatched types

error[E0308]: mismatched types
  --> core/src/v3/security_scheme.rs:35:41
   |
35 | ...                   scopes: scopes.clone(),
   |                               ^^^^^^^^^^^^^^ expected `IndexMap<String, String>`, found a different `IndexMap<String, String>`
   |
   = note: `IndexMap<String, String>` and `IndexMap<String, String>` have similar names, but are actually distinct types
note: `IndexMap<String, String>` is defined in crate `indexmap`
  --> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/indexmap-2.2.5/src/map.rs:85:1
   |
85 | pub struct IndexMap<K, V, S = RandomState> {
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
note: `IndexMap<String, String>` is defined in crate `indexmap`
  --> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/indexmap-1.9.3/src/map.rs:71:1
   |
71 | pub struct IndexMap<K, V, S = RandomState> {
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   = note: perhaps two different versions of crate `indexmap` are being used?

Check failure on line 180 in core/src/v3/schema.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

mismatched types

error[E0308]: mismatched types
   --> core/src/v3/schema.rs:180:31
    |
180 |                         .fold(indexmap::IndexMap::new(), |mut i, b| {
    |                          ---- ^^^^^^^^^^^^^^^^^^^^^^^^^ expected `IndexMap<String, ReferenceOr<...>>`, found `IndexMap<_, _>`
    |                          |
    |                          arguments to this method are incorrect
    |
    = note: `indexmap::IndexMap<_, _>` and `IndexMap<String, ReferenceOr<...>>` have similar names, but are actually distinct types
note: `indexmap::IndexMap<_, _>` is defined in crate `indexmap`
   --> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/indexmap-2.2.5/src/map.rs:85:1
    |
85  | pub struct IndexMap<K, V, S = RandomState> {
    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
note: `IndexMap<String, ReferenceOr<...>>` is defined in crate `indexmap`
   --> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/indexmap-1.9.3/src/map.rs:71:1
    |
71  | pub struct IndexMap<K, V, S = RandomState> {
    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    = note: perhaps two different versions of crate `indexmap` are being used?
help: the return type of this call is `indexmap::IndexMap<_, _>` due to the type of the argument passed
   --> core/src/v3/schema.rs:178:21
    |
178 | /                     properties
179 | |                         .iter()
180 | |                         .fold(indexmap::IndexMap::new(), |mut i, b| {
    | |                               ------------------------- this argument influences the return type of `fold`
181 | |                             i.insert(b.0.to_string(), b.1.deref().clone().into());
182 | |                             i
183 | |                         })
    | |__________________________^
note: method defined here
   --> /rustc/878c8a2a62d49ca5c454547ad67290a1df746cb5/library/core/src/iter/traits/iterator.rs:2611:8

Check failure on line 180 in core/src/v3/schema.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

type annotations needed

error[E0282]: type annotations needed
   --> core/src/v3/schema.rs:180:59
    |
180 |                         .fold(indexmap::IndexMap::new(), |mut i, b| {
    |                                                           ^^^^^
181 |                             i.insert(b.0.to_string(), b.1.deref().clone().into());
    |                             - type must be known at this point
    |
help: consider giving this closure parameter an explicit type
    |
180 |                         .fold(indexmap::IndexMap::new(), |mut i: /* Type */, b| {
    |                                                                ++++++++++++

Check failure on line 33 in core/src/v3/schema.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

mismatched types

error[E0308]: mismatched types
  --> core/src/v3/schema.rs:33:37
   |
33 |                         extensions: indexmap::IndexMap::new(),
   |                                     ^^^^^^^^^^^^^^^^^^^^^^^^^ expected `IndexMap<String, Value>`, found `IndexMap<_, _>`
   |
   = note: `indexmap::IndexMap<_, _>` and `IndexMap<String, Value>` have similar names, but are actually distinct types
note: `indexmap::IndexMap<_, _>` is defined in crate `indexmap`
  --> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/indexmap-2.2.5/src/map.rs:85:1
   |
85 | pub struct IndexMap<K, V, S = RandomState> {
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
note: `IndexMap<String, Value>` is defined in crate `indexmap`
  --> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/indexmap-1.9.3/src/map.rs:71:1
   |
71 | pub struct IndexMap<K, V, S = RandomState> {
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   = note: perhaps two different versions of crate `indexmap` are being used?

Check failure on line 96 in core/src/v3/response.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

mismatched types

error[E0308]: mismatched types
  --> core/src/v3/response.rs:96:33
   |
96 |                     extensions: indexmap::IndexMap::new(),
   |                                 ^^^^^^^^^^^^^^^^^^^^^^^^^ expected `IndexMap<String, Value>`, found `IndexMap<_, _>`
   |
   = note: `indexmap::IndexMap<_, _>` and `IndexMap<String, Value>` have similar names, but are actually distinct types
note: `indexmap::IndexMap<_, _>` is defined in crate `indexmap`
  --> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/indexmap-2.2.5/src/map.rs:85:1
   |
85 | pub struct IndexMap<K, V, S = RandomState> {
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
note: `IndexMap<String, Value>` is defined in crate `indexmap`
  --> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/indexmap-1.9.3/src/map.rs:71:1
   |
71 | pub struct IndexMap<K, V, S = RandomState> {
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   = note: perhaps two different versions of crate `indexmap` are being used?

Check failure on line 95 in core/src/v3/response.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

mismatched types

error[E0308]: mismatched types
  --> core/src/v3/response.rs:95:28
   |
95 |                     links: indexmap::IndexMap::new(),
   |                            ^^^^^^^^^^^^^^^^^^^^^^^^^ expected `IndexMap<String, ReferenceOr<Link>>`, found `IndexMap<_, _>`
   |
   = note: `indexmap::IndexMap<_, _>` and `IndexMap<String, ReferenceOr<Link>>` have similar names, but are actually distinct types
note: `indexmap::IndexMap<_, _>` is defined in crate `indexmap`
  --> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/indexmap-2.2.5/src/map.rs:85:1
   |
85 | pub struct IndexMap<K, V, S = RandomState> {
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
note: `IndexMap<String, ReferenceOr<Link>>` is defined in crate `indexmap`
  --> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/indexmap-1.9.3/src/map.rs:71:1
   |
71 | pub struct IndexMap<K, V, S = RandomState> {
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   = note: perhaps two different versions of crate `indexmap` are being used?

Check failure on line 93 in core/src/v3/response.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

mismatched types

error[E0308]: mismatched types
  --> core/src/v3/response.rs:93:25
   |
93 |                         map
   |                         ^^^ expected `IndexMap<String, MediaType>`, found a different `IndexMap<String, MediaType>`
   |
   = note: `IndexMap<String, MediaType>` and `IndexMap<String, MediaType>` have similar names, but are actually distinct types
note: `IndexMap<String, MediaType>` is defined in crate `indexmap`
  --> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/indexmap-2.2.5/src/map.rs:85:1
   |
85 | pub struct IndexMap<K, V, S = RandomState> {
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
note: `IndexMap<String, MediaType>` is defined in crate `indexmap`
  --> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/indexmap-1.9.3/src/map.rs:71:1
   |
71 | pub struct IndexMap<K, V, S = RandomState> {
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   = note: perhaps two different versions of crate `indexmap` are being used?

Check failure on line 75 in core/src/v3/response.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

mismatched types

error[E0308]: mismatched types
  --> core/src/v3/response.rs:75:30
   |
75 |                     headers: indexmap::IndexMap::new(),
   |                              ^^^^^^^^^^^^^^^^^^^^^^^^^ expected `IndexMap<String, ReferenceOr<...>>`, found `IndexMap<_, _>`
   |
   = note: `indexmap::IndexMap<_, _>` and `IndexMap<String, ReferenceOr<...>>` have similar names, but are actually distinct types
note: `indexmap::IndexMap<_, _>` is defined in crate `indexmap`
  --> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/indexmap-2.2.5/src/map.rs:85:1
   |
85 | pub struct IndexMap<K, V, S = RandomState> {
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
note: `IndexMap<String, ReferenceOr<...>>` is defined in crate `indexmap`
  --> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/indexmap-1.9.3/src/map.rs:71:1
   |
71 | pub struct IndexMap<K, V, S = RandomState> {
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   = note: perhaps two different versions of crate `indexmap` are being used?

Check failure on line 59 in core/src/v3/response.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

mismatched types

error[E0308]: mismatched types
  --> core/src/v3/response.rs:59:20
   |
59 |             links: indexmap::IndexMap::new(),
   |                    ^^^^^^^^^^^^^^^^^^^^^^^^^ expected `IndexMap<String, ReferenceOr<Link>>`, found `IndexMap<_, _>`
   |
   = note: `indexmap::IndexMap<_, _>` and `IndexMap<String, ReferenceOr<Link>>` have similar names, but are actually distinct types
note: `indexmap::IndexMap<_, _>` is defined in crate `indexmap`
  --> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/indexmap-2.2.5/src/map.rs:85:1
   |
85 | pub struct IndexMap<K, V, S = RandomState> {
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
note: `IndexMap<String, ReferenceOr<Link>>` is defined in crate `indexmap`
  --> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/indexmap-1.9.3/src/map.rs:71:1
   |
71 | pub struct IndexMap<K, V, S = RandomState> {
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   = note: perhaps two different versions of crate `indexmap` are being used?

Check failure on line 58 in core/src/v3/response.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

mismatched types

error[E0308]: mismatched types
  --> core/src/v3/response.rs:58:25
   |
58 |             extensions: indexmap::IndexMap::new(),
   |                         ^^^^^^^^^^^^^^^^^^^^^^^^^ expected `IndexMap<String, Value>`, found `IndexMap<_, _>`
   |
   = note: `indexmap::IndexMap<_, _>` and `IndexMap<String, Value>` have similar names, but are actually distinct types
note: `indexmap::IndexMap<_, _>` is defined in crate `indexmap`
  --> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/indexmap-2.2.5/src/map.rs:85:1
   |
85 | pub struct IndexMap<K, V, S = RandomState> {
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
note: `IndexMap<String, Value>` is defined in crate `indexmap`
  --> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/indexmap-1.9.3/src/map.rs:71:1
   |
71 | pub struct IndexMap<K, V, S = RandomState> {
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   = note: perhaps two different versions of crate `indexmap` are being used?

Check failure on line 53 in core/src/v3/response.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

mismatched types

error[E0308]: mismatched types
  --> core/src/v3/response.rs:53:25
   |
53 |                         map
   |                         ^^^ expected `IndexMap<String, MediaType>`, found a different `IndexMap<String, MediaType>`
   |
   = note: `IndexMap<String, MediaType>` and `IndexMap<String, MediaType>` have similar names, but are actually distinct types
note: `IndexMap<String, MediaType>` is defined in crate `indexmap`
  --> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/indexmap-2.2.5/src/map.rs:85:1
   |
85 | pub struct IndexMap<K, V, S = RandomState> {
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
note: `IndexMap<String, MediaType>` is defined in crate `indexmap`
  --> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/indexmap-1.9.3/src/map.rs:71:1
   |
71 | pub struct IndexMap<K, V, S = RandomState> {
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   = note: perhaps two different versions of crate `indexmap` are being used?

Check failure on line 16 in core/src/v3/response.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

mismatched types

error[E0308]: mismatched types
  --> core/src/v3/response.rs:16:23
   |
16 |                 .fold(indexmap::IndexMap::new(), |mut i, b| {
   |                  ---- ^^^^^^^^^^^^^^^^^^^^^^^^^ expected `IndexMap<String, ReferenceOr<...>>`, found `IndexMap<_, _>`
   |                  |
   |                  arguments to this method are incorrect
   |
   = note: `indexmap::IndexMap<_, _>` and `IndexMap<String, ReferenceOr<...>>` have similar names, but are actually distinct types
note: `indexmap::IndexMap<_, _>` is defined in crate `indexmap`
  --> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/indexmap-2.2.5/src/map.rs:85:1
   |
85 | pub struct IndexMap<K, V, S = RandomState> {
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
note: `IndexMap<String, ReferenceOr<...>>` is defined in crate `indexmap`
  --> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/indexmap-1.9.3/src/map.rs:71:1
   |
71 | pub struct IndexMap<K, V, S = RandomState> {
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   = note: perhaps two different versions of crate `indexmap` are being used?
help: the return type of this call is `indexmap::IndexMap<_, _>` due to the type of the argument passed
  --> core/src/v3/response.rs:12:22
   |
12 |               headers: v2
   |  ______________________^
13 | |                 .response
14 | |                 .headers
15 | |                 .iter()
16 | |                 .fold(indexmap::IndexMap::new(), |mut i, b| {
   | |                       ------------------------- this argument influences the return type of `fold`
...  |
21 | |                     i
22 | |                 }),
   | |__________________^
note: method defined here
  --> /rustc/878c8a2a62d49ca5c454547ad67290a1df746cb5/library/core/src/iter/traits/iterator.rs:2611:8

Check failure on line 16 in core/src/v3/response.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

type annotations needed

error[E0282]: type annotations needed
  --> core/src/v3/response.rs:16:51
   |
16 |                 .fold(indexmap::IndexMap::new(), |mut i, b| {
   |                                                   ^^^^^
17 |                     i.insert(
   |                     - type must be known at this point
   |
help: consider giving this closure parameter an explicit type
   |
16 |                 .fold(indexmap::IndexMap::new(), |mut i: /* Type */, b| {
   |                                                        ++++++++++++

Check failure on line 57 in core/src/v3/request_body.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

mismatched types

error[E0308]: mismatched types
  --> core/src/v3/request_body.rs:57:29
   |
57 |                 extensions: indexmap::IndexMap::new(),
   |                             ^^^^^^^^^^^^^^^^^^^^^^^^^ expected `IndexMap<String, Value>`, found `IndexMap<_, _>`
   |
   = note: `indexmap::IndexMap<_, _>` and `IndexMap<String, Value>` have similar names, but are actually distinct types
note: `indexmap::IndexMap<_, _>` is defined in crate `indexmap`
  --> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/indexmap-2.2.5/src/map.rs:85:1
   |
85 | pub struct IndexMap<K, V, S = RandomState> {
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
note: `IndexMap<String, Value>` is defined in crate `indexmap`
  --> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/indexmap-1.9.3/src/map.rs:71:1
   |
71 | pub struct IndexMap<K, V, S = RandomState> {
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   = note: perhaps two different versions of crate `indexmap` are being used?

Check failure on line 54 in core/src/v3/request_body.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

mismatched types

error[E0308]: mismatched types
  --> core/src/v3/request_body.rs:54:21
   |
54 |                     map
   |                     ^^^ expected `IndexMap<String, MediaType>`, found a different `IndexMap<String, MediaType>`
   |
   = note: `IndexMap<String, MediaType>` and `IndexMap<String, MediaType>` have similar names, but are actually distinct types
note: `IndexMap<String, MediaType>` is defined in crate `indexmap`
  --> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/indexmap-2.2.5/src/map.rs:85:1
   |
85 | pub struct IndexMap<K, V, S = RandomState> {
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
note: `IndexMap<String, MediaType>` is defined in crate `indexmap`
  --> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/indexmap-1.9.3/src/map.rs:71:1
   |
71 | pub struct IndexMap<K, V, S = RandomState> {
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   = note: perhaps two different versions of crate `indexmap` are being used?

Check failure on line 24 in core/src/v3/request_body.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

mismatched types

error[E0308]: mismatched types
  --> core/src/v3/request_body.rs:24:25
   |
24 |             extensions: indexmap::IndexMap::new(),
   |                         ^^^^^^^^^^^^^^^^^^^^^^^^^ expected `IndexMap<String, Value>`, found `IndexMap<_, _>`
   |
   = note: `indexmap::IndexMap<_, _>` and `IndexMap<String, Value>` have similar names, but are actually distinct types
note: `indexmap::IndexMap<_, _>` is defined in crate `indexmap`
  --> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/indexmap-2.2.5/src/map.rs:85:1
   |
85 | pub struct IndexMap<K, V, S = RandomState> {
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
note: `IndexMap<String, Value>` is defined in crate `indexmap`
  --> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/indexmap-1.9.3/src/map.rs:71:1
   |
71 | pub struct IndexMap<K, V, S = RandomState> {
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   = note: perhaps two different versions of crate `indexmap` are being used?

Check failure on line 22 in core/src/v3/request_body.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

mismatched types

error[E0308]: mismatched types
  --> core/src/v3/request_body.rs:22:23
   |
22 |             examples: indexmap::IndexMap::new(),
   |                       ^^^^^^^^^^^^^^^^^^^^^^^^^ expected `IndexMap<String, ReferenceOr<...>>`, found `IndexMap<_, _>`
   |
   = note: `indexmap::IndexMap<_, _>` and `IndexMap<String, ReferenceOr<...>>` have similar names, but are actually distinct types
note: `indexmap::IndexMap<_, _>` is defined in crate `indexmap`
  --> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/indexmap-2.2.5/src/map.rs:85:1
   |
85 | pub struct IndexMap<K, V, S = RandomState> {
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
note: `IndexMap<String, ReferenceOr<...>>` is defined in crate `indexmap`
  --> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/indexmap-1.9.3/src/map.rs:71:1
   |
71 | pub struct IndexMap<K, V, S = RandomState> {
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   = note: perhaps two different versions of crate `indexmap` are being used?

Check failure on line 29 in core/src/v3/paths.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

mismatched types

error[E0308]: mismatched types
  --> core/src/v3/paths.rs:29:25
   |
29 |             extensions: indexmap::IndexMap::new(),
   |                         ^^^^^^^^^^^^^^^^^^^^^^^^^ expected `IndexMap<String, Value>`, found `IndexMap<_, _>`
   |
   = note: `indexmap::IndexMap<_, _>` and `IndexMap<String, Value>` have similar names, but are actually distinct types
note: `indexmap::IndexMap<_, _>` is defined in crate `indexmap`
  --> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/indexmap-2.2.5/src/map.rs:85:1
   |
85 | pub struct IndexMap<K, V, S = RandomState> {
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
note: `IndexMap<String, Value>` is defined in crate `indexmap`
  --> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/indexmap-1.9.3/src/map.rs:71:1
   |
71 | pub struct IndexMap<K, V, S = RandomState> {
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   = note: perhaps two different versions of crate `indexmap` are being used?

Check failure on line 124 in core/src/v3/operation.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

mismatched types

error[E0308]: mismatched types
   --> core/src/v3/operation.rs:124:25
    |
124 |             extensions: indexmap::IndexMap::new(),
    |                         ^^^^^^^^^^^^^^^^^^^^^^^^^ expected `IndexMap<String, Value>`, found `IndexMap<_, _>`
    |
    = note: `indexmap::IndexMap<_, _>` and `IndexMap<String, Value>` have similar names, but are actually distinct types
note: `indexmap::IndexMap<_, _>` is defined in crate `indexmap`
   --> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/indexmap-2.2.5/src/map.rs:85:1
    |
85  | pub struct IndexMap<K, V, S = RandomState> {
    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
note: `IndexMap<String, Value>` is defined in crate `indexmap`
   --> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/indexmap-1.9.3/src/map.rs:71:1
    |
71  | pub struct IndexMap<K, V, S = RandomState> {
    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    = note: perhaps two different versions of crate `indexmap` are being used?

Check failure on line 120 in core/src/v3/operation.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

a value of type `std::vec::Vec<indexmap::map::IndexMap<std::string::String, std::vec::Vec<std::string::String>>>` cannot be built from an iterator over elements of type `indexmap::IndexMap<std::string::String, std::vec::Vec<std::string::String>>`

error[E0277]: a value of type `std::vec::Vec<indexmap::map::IndexMap<std::string::String, std::vec::Vec<std::string::String>>>` cannot be built from an iterator over elements of type `indexmap::IndexMap<std::string::String, std::vec::Vec<std::string::String>>`
   --> core/src/v3/operation.rs:120:26
    |
120 |                         .collect(),
    |                          ^^^^^^^ value of type `std::vec::Vec<indexmap::map::IndexMap<std::string::String, std::vec::Vec<std::string::String>>>` cannot be built from `std::iter::Iterator<Item=indexmap::IndexMap<std::string::String, std::vec::Vec<std::string::String>>>`
    |
    = help: the trait `std::iter::FromIterator<indexmap::IndexMap<std::string::String, std::vec::Vec<std::string::String>>>` is not implemented for `std::vec::Vec<indexmap::map::IndexMap<std::string::String, std::vec::Vec<std::string::String>>>`
    = help: the trait `std::iter::FromIterator<indexmap::map::IndexMap<std::string::String, std::vec::Vec<std::string::String>>>` is implemented for `std::vec::Vec<indexmap::map::IndexMap<std::string::String, std::vec::Vec<std::string::String>>>`
    = help: for that trait implementation, expected `indexmap::map::IndexMap<std::string::String, std::vec::Vec<std::string::String>>`, found `indexmap::IndexMap<std::string::String, std::vec::Vec<std::string::String>>`
note: the method call chain might not have had the expected associated types
   --> core/src/v3/operation.rs:114:26
    |
112 |                       v2.security
    |                       ----------- this expression has type `Vec<BTreeMap<String, Vec<String>>>`
113 |                           .iter()
    |                            ------ `Iterator::Item` is `&BTreeMap<String, Vec<String>>` here
114 |                           .map(|s| {
    |  __________________________^
115 | |                             s.iter().fold(indexmap::IndexMap::new(), |mut i, (k, v)| {
116 | |                                 i.insert(k.to_string(), v.clone());
117 | |                                 i
118 | |                             })
119 | |                         })
    | |__________________________^ `Iterator::Item` changed to `IndexMap<String, Vec<String>>` here
note: required by a bound in `std::iter::Iterator::collect`
   --> /rustc/878c8a2a62d49ca5c454547ad67290a1df746cb5/library/core/src/iter/traits/iterator.rs:2030:5

Check failure on line 91 in core/src/v3/operation.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

mismatched types

error[E0308]: mismatched types
   --> core/src/v3/operation.rs:91:27
    |
91  |                     .fold(indexmap::IndexMap::new(), |mut i, (k, v)| {
    |                      ---- ^^^^^^^^^^^^^^^^^^^^^^^^^ expected `IndexMap<StatusCode, ...>`, found `IndexMap<_, _>`
    |                      |
    |                      arguments to this method are incorrect
    |
    = note: `indexmap::IndexMap<_, _>` and `IndexMap<StatusCode, ...>` have similar names, but are actually distinct types
note: `indexmap::IndexMap<_, _>` is defined in crate `indexmap`
   --> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/indexmap-2.2.5/src/map.rs:85:1
    |
85  | pub struct IndexMap<K, V, S = RandomState> {
    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
note: `IndexMap<StatusCode, ...>` is defined in crate `indexmap`
   --> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/indexmap-1.9.3/src/map.rs:71:1
    |
71  | pub struct IndexMap<K, V, S = RandomState> {
    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    = note: perhaps two different versions of crate `indexmap` are being used?
help: the return type of this call is `indexmap::IndexMap<_, _>` due to the type of the argument passed
   --> core/src/v3/operation.rs:88:28
    |
88  |                   responses: v2
    |  ____________________________^
89  | |                     .responses
90  | |                     .iter()
91  | |                     .fold(indexmap::IndexMap::new(), |mut i, (k, v)| {
    | |                           ------------------------- this argument influences the return type of `fold`
...   |
103 | |                         i
104 | |                     }),
    | |______________________^
note: method defined here
   --> /rustc/878c8a2a62d49ca5c454547ad67290a1df746cb5/library/core/src/iter/traits/iterator.rs:2611:8