Updated rustls and other dependencies #522
Annotations
61 warnings
creating a shared reference to mutable static is discouraged:
saphir/src/body.rs#L88
warning: creating a shared reference to mutable static is discouraged
--> saphir/src/body.rs:88:28
|
88 | if REQUEST_BODY_BYTES_LIMIT.as_ref().filter(|p| vec.len() >= **p).is_some() {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static
|
= note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2024/static-mut-references.html>
= note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
|
creating a shared reference to mutable static is discouraged:
saphir/src/body.rs#L80
warning: creating a shared reference to mutable static is discouraged
--> saphir/src/body.rs:80:24
|
80 | if REQUEST_BODY_BYTES_LIMIT.as_ref().filter(|p| vec.len() >= **p).is_some() {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static
|
= note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2024/static-mut-references.html>
= note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
|
creating a shared reference to mutable static is discouraged:
saphir/src/body.rs#L63
warning: creating a shared reference to mutable static is discouraged
--> saphir/src/body.rs:63:24
|
63 | if REQUEST_BODY_BYTES_LIMIT.as_ref().filter(|p| first.len() >= **p).is_some() {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static
|
= note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2024/static-mut-references.html>
= note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
= note: `#[warn(static_mut_refs)]` on by default
|
function call inside of `expect`:
saphir/src/server.rs#L930
warning: function call inside of `expect`
--> saphir/src/server.rs:930:12
|
930 | }).expect(&format!("Unable to load key: {}", filename))
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `unwrap_or_else(|_| panic!("Unable to load key: {}", filename))`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#expect_fun_call
= note: `#[warn(clippy::expect_fun_call)]` on by default
|
using `map_err` over `inspect_err`:
saphir/src/server.rs#L730
warning: using `map_err` over `inspect_err`
--> saphir/src/server.rs:730:63
|
730 | e.response_builder(builder, &err_ctx).build().map_err(|e2| {
| ^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_inspect
= note: `#[warn(clippy::manual_inspect)]` on by default
help: try
|
730 ~ e.response_builder(builder, &err_ctx).build().inspect_err(|e2| {
731 ~ e2.log(&err_ctx);
|
|
creating a shared reference to mutable static is discouraged:
saphir/src/body.rs#L88
warning: creating a shared reference to mutable static is discouraged
--> saphir/src/body.rs:88:28
|
88 | if REQUEST_BODY_BYTES_LIMIT.as_ref().filter(|p| vec.len() >= **p).is_some() {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static
|
= note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2024/static-mut-references.html>
= note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
|
creating a shared reference to mutable static is discouraged:
saphir/src/body.rs#L80
warning: creating a shared reference to mutable static is discouraged
--> saphir/src/body.rs:80:24
|
80 | if REQUEST_BODY_BYTES_LIMIT.as_ref().filter(|p| vec.len() >= **p).is_some() {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static
|
= note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2024/static-mut-references.html>
= note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
|
creating a shared reference to mutable static is discouraged:
saphir/src/body.rs#L63
warning: creating a shared reference to mutable static is discouraged
--> saphir/src/body.rs:63:24
|
63 | if REQUEST_BODY_BYTES_LIMIT.as_ref().filter(|p| first.len() >= **p).is_some() {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static
|
= note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2024/static-mut-references.html>
= note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
= note: `#[warn(static_mut_refs)]` on by default
|
the `Err`-variant returned from this function is very large:
saphir/src/response.rs#L416
warning: the `Err`-variant returned from this function is very large
--> saphir/src/response.rs:416:51
|
416 | pub fn form<T: Serialize>(self, t: &T) -> Result<Builder, (Builder, SaphirError)> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 328 bytes
|
= help: try reducing the size of `(response::Builder, error::SaphirError)`, for example by boxing large elements or replacing it with `Box<(response::Builder, error::SaphirError)>`
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err
|
the `Err`-variant returned from this function is very large:
saphir/src/response.rs#L399
warning: the `Err`-variant returned from this function is very large
--> saphir/src/response.rs:399:51
|
399 | pub fn json<T: Serialize>(self, t: &T) -> Result<Builder, (Builder, SaphirError)> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 328 bytes
|
= help: try reducing the size of `(response::Builder, error::SaphirError)`, for example by boxing large elements or replacing it with `Box<(response::Builder, error::SaphirError)>`
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err
= note: `#[warn(clippy::result_large_err)]` on by default
|
function call inside of `expect`:
saphir/src/server.rs#L930
warning: function call inside of `expect`
--> saphir/src/server.rs:930:12
|
930 | }).expect(&format!("Unable to load key: {}", filename))
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `unwrap_or_else(|_| panic!("Unable to load key: {}", filename))`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#expect_fun_call
= note: `#[warn(clippy::expect_fun_call)]` on by default
|
using `map_err` over `inspect_err`:
saphir/src/server.rs#L730
warning: using `map_err` over `inspect_err`
--> saphir/src/server.rs:730:63
|
730 | e.response_builder(builder, &err_ctx).build().map_err(|e2| {
| ^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_inspect
= note: `#[warn(clippy::manual_inspect)]` on by default
help: try
|
730 ~ e.response_builder(builder, &err_ctx).build().inspect_err(|e2| {
731 ~ e2.log(&err_ctx);
|
|
the following explicit lifetimes could be elided: 'f:
saphir/src/multipart/mod.rs#L90
warning: the following explicit lifetimes could be elided: 'f
--> saphir/src/multipart/mod.rs:90:6
|
90 | impl<'f> Field<'f> {
| ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
90 - impl<'f> Field<'f> {
90 + impl Field<'_> {
|
|
the following explicit lifetimes could be elided: 'de:
saphir/src/http_context.rs#L306
warning: the following explicit lifetimes could be elided: 'de
--> saphir/src/http_context.rs:306:10
|
306 | impl<'de> Visitor<'de> for OperationIdVisitor {
| ^^^ ^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
= note: `#[warn(clippy::needless_lifetimes)]` on by default
help: elide the lifetimes
|
306 - impl<'de> Visitor<'de> for OperationIdVisitor {
306 + impl Visitor<'_> for OperationIdVisitor {
|
|
the `Err`-variant returned from this function is very large:
saphir/src/response.rs#L416
warning: the `Err`-variant returned from this function is very large
--> saphir/src/response.rs:416:51
|
416 | pub fn form<T: Serialize>(self, t: &T) -> Result<Builder, (Builder, SaphirError)> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 328 bytes
|
= help: try reducing the size of `(response::Builder, error::SaphirError)`, for example by boxing large elements or replacing it with `Box<(response::Builder, error::SaphirError)>`
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err
|
the `Err`-variant returned from this function is very large:
saphir/src/response.rs#L399
warning: the `Err`-variant returned from this function is very large
--> saphir/src/response.rs:399:51
|
399 | pub fn json<T: Serialize>(self, t: &T) -> Result<Builder, (Builder, SaphirError)> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `Err`-variant is at least 328 bytes
|
= help: try reducing the size of `(response::Builder, error::SaphirError)`, for example by boxing large elements or replacing it with `Box<(response::Builder, error::SaphirError)>`
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_large_err
= note: `#[warn(clippy::result_large_err)]` on by default
|
doc quote line without `>` marker:
saphir/src/file/range.rs#L66
warning: doc quote line without `>` marker
--> saphir/src/file/range.rs:66:9
|
66 | /// length of the selected representation).
| ^
|
= help: if this not intended to be a quote at all, escape it with `\>`
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation
help: add markers to start of line
|
66 | /// > length of the selected representation).
| +
|
doc quote line without `>` marker:
saphir/src/file/range.rs#L65
warning: doc quote line without `>` marker
--> saphir/src/file/range.rs:65:9
|
65 | /// value of last-byte-pos with a value that is one less than the current
| ^
|
= help: if this not intended to be a quote at all, escape it with `\>`
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation
help: add markers to start of line
|
65 | /// > value of last-byte-pos with a value that is one less than the current
| +
|
doc quote line without `>` marker:
saphir/src/file/range.rs#L64
warning: doc quote line without `>` marker
--> saphir/src/file/range.rs:64:9
|
64 | /// the remainder of the representation (i.e., the server replaces the
| ^
|
= help: if this not intended to be a quote at all, escape it with `\>`
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation
help: add markers to start of line
|
64 | /// > the remainder of the representation (i.e., the server replaces the
| +
|
doc quote line without `>` marker:
saphir/src/file/range.rs#L63
warning: doc quote line without `>` marker
--> saphir/src/file/range.rs:63:9
|
63 | /// length of the representation data, the byte range is interpreted as
| ^
|
= help: if this not intended to be a quote at all, escape it with `\>`
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation
help: add markers to start of line
|
63 | /// > length of the representation data, the byte range is interpreted as
| +
|
doc quote line without `>` marker:
saphir/src/file/range.rs#L62
warning: doc quote line without `>` marker
--> saphir/src/file/range.rs:62:9
|
62 | /// absent, or if the value is greater than or equal to the current
| ^
|
= help: if this not intended to be a quote at all, escape it with `\>`
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation
help: add markers to start of line
|
62 | /// > absent, or if the value is greater than or equal to the current
| +
|
doc quote line without `>` marker:
saphir/src/file/range.rs#L57
warning: doc quote line without `>` marker
--> saphir/src/file/range.rs:57:9
|
57 | /// Otherwise, the byte-range-set is unsatisfiable.
| ^
|
= help: if this not intended to be a quote at all, escape it with `\>`
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation
help: add markers to start of line
|
57 | /// > Otherwise, the byte-range-set is unsatisfiable.
| +
|
doc quote line without `>` marker:
saphir/src/file/range.rs#L56
warning: doc quote line without `>` marker
--> saphir/src/file/range.rs:56:9
|
56 | /// non-zero suffix-length, then the byte-range-set is satisfiable.
| ^
|
= help: if this not intended to be a quote at all, escape it with `\>`
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation
help: add markers to start of line
|
56 | /// > non-zero suffix-length, then the byte-range-set is satisfiable.
| +
|
doc quote line without `>` marker:
saphir/src/file/range.rs#L55
warning: doc quote line without `>` marker
--> saphir/src/file/range.rs:55:9
|
55 | /// representation, or at least one suffix-byte-range-spec with a
| ^
|
= help: if this not intended to be a quote at all, escape it with `\>`
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation
help: add markers to start of line
|
55 | /// > representation, or at least one suffix-byte-range-spec with a
| +
|
doc quote line without `>` marker:
saphir/src/file/range.rs#L54
warning: doc quote line without `>` marker
--> saphir/src/file/range.rs:54:9
|
54 | /// a first-byte-pos that is less than the current length of the
| ^
|
= help: if this not intended to be a quote at all, escape it with `\>`
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation
= note: `#[warn(clippy::doc_lazy_continuation)]` on by default
help: add markers to start of line
|
54 | /// > a first-byte-pos that is less than the current length of the
| +
|
the following explicit lifetimes could be elided: 'f:
saphir/src/multipart/mod.rs#L90
warning: the following explicit lifetimes could be elided: 'f
--> saphir/src/multipart/mod.rs:90:6
|
90 | impl<'f> Field<'f> {
| ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
|
90 - impl<'f> Field<'f> {
90 + impl Field<'_> {
|
|
the following explicit lifetimes could be elided: 'de:
saphir/src/http_context.rs#L306
warning: the following explicit lifetimes could be elided: 'de
--> saphir/src/http_context.rs:306:10
|
306 | impl<'de> Visitor<'de> for OperationIdVisitor {
| ^^^ ^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
= note: `#[warn(clippy::needless_lifetimes)]` on by default
help: elide the lifetimes
|
306 - impl<'de> Visitor<'de> for OperationIdVisitor {
306 + impl Visitor<'_> for OperationIdVisitor {
|
|
doc quote line without `>` marker:
saphir/src/file/range.rs#L66
warning: doc quote line without `>` marker
--> saphir/src/file/range.rs:66:9
|
66 | /// length of the selected representation).
| ^
|
= help: if this not intended to be a quote at all, escape it with `\>`
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation
help: add markers to start of line
|
66 | /// > length of the selected representation).
| +
|
doc quote line without `>` marker:
saphir/src/file/range.rs#L65
warning: doc quote line without `>` marker
--> saphir/src/file/range.rs:65:9
|
65 | /// value of last-byte-pos with a value that is one less than the current
| ^
|
= help: if this not intended to be a quote at all, escape it with `\>`
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation
help: add markers to start of line
|
65 | /// > value of last-byte-pos with a value that is one less than the current
| +
|
doc quote line without `>` marker:
saphir/src/file/range.rs#L64
warning: doc quote line without `>` marker
--> saphir/src/file/range.rs:64:9
|
64 | /// the remainder of the representation (i.e., the server replaces the
| ^
|
= help: if this not intended to be a quote at all, escape it with `\>`
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation
help: add markers to start of line
|
64 | /// > the remainder of the representation (i.e., the server replaces the
| +
|
doc quote line without `>` marker:
saphir/src/file/range.rs#L63
warning: doc quote line without `>` marker
--> saphir/src/file/range.rs:63:9
|
63 | /// length of the representation data, the byte range is interpreted as
| ^
|
= help: if this not intended to be a quote at all, escape it with `\>`
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation
help: add markers to start of line
|
63 | /// > length of the representation data, the byte range is interpreted as
| +
|
doc quote line without `>` marker:
saphir/src/file/range.rs#L62
warning: doc quote line without `>` marker
--> saphir/src/file/range.rs:62:9
|
62 | /// absent, or if the value is greater than or equal to the current
| ^
|
= help: if this not intended to be a quote at all, escape it with `\>`
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation
help: add markers to start of line
|
62 | /// > absent, or if the value is greater than or equal to the current
| +
|
doc quote line without `>` marker:
saphir/src/file/range.rs#L57
warning: doc quote line without `>` marker
--> saphir/src/file/range.rs:57:9
|
57 | /// Otherwise, the byte-range-set is unsatisfiable.
| ^
|
= help: if this not intended to be a quote at all, escape it with `\>`
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation
help: add markers to start of line
|
57 | /// > Otherwise, the byte-range-set is unsatisfiable.
| +
|
doc quote line without `>` marker:
saphir/src/file/range.rs#L56
warning: doc quote line without `>` marker
--> saphir/src/file/range.rs:56:9
|
56 | /// non-zero suffix-length, then the byte-range-set is satisfiable.
| ^
|
= help: if this not intended to be a quote at all, escape it with `\>`
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation
help: add markers to start of line
|
56 | /// > non-zero suffix-length, then the byte-range-set is satisfiable.
| +
|
doc quote line without `>` marker:
saphir/src/file/range.rs#L55
warning: doc quote line without `>` marker
--> saphir/src/file/range.rs:55:9
|
55 | /// representation, or at least one suffix-byte-range-spec with a
| ^
|
= help: if this not intended to be a quote at all, escape it with `\>`
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation
help: add markers to start of line
|
55 | /// > representation, or at least one suffix-byte-range-spec with a
| +
|
doc quote line without `>` marker:
saphir/src/file/range.rs#L54
warning: doc quote line without `>` marker
--> saphir/src/file/range.rs:54:9
|
54 | /// a first-byte-pos that is less than the current length of the
| ^
|
= help: if this not intended to be a quote at all, escape it with `\>`
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation
= note: `#[warn(clippy::doc_lazy_continuation)]` on by default
help: add markers to start of line
|
54 | /// > a first-byte-pos that is less than the current length of the
| +
|
the following explicit lifetimes could be elided: 'de:
saphir_cli/src/openapi/schema.rs#L58
warning: the following explicit lifetimes could be elided: 'de
--> saphir_cli/src/openapi/schema.rs:58:6
|
58 | impl<'de> Visitor<'de> for OpenApiMimeTypeVisitor {
| ^^^ ^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
= note: `#[warn(clippy::needless_lifetimes)]` on by default
help: elide the lifetimes
|
58 - impl<'de> Visitor<'de> for OpenApiMimeTypeVisitor {
58 + impl Visitor<'_> for OpenApiMimeTypeVisitor {
|
|
doc list item without indentation:
saphir_cli/src/openapi/generate/mod.rs#L134
warning: doc list item without indentation
--> saphir_cli/src/openapi/generate/mod.rs:134:9
|
134 | /// , the generated doc would contain only the `/api/v2/user` endpoints.
| ^
|
= help: if this is supposed to be its own paragraph, add a blank line
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation
= note: `#[warn(clippy::doc_lazy_continuation)]` on by default
help: indent this line
|
134 | /// , the generated doc would contain only the `/api/v2/user` endpoints.
| ++
|
the following explicit lifetimes could be elided: 'de:
saphir_cli/src/openapi/schema.rs#L58
warning: the following explicit lifetimes could be elided: 'de
--> saphir_cli/src/openapi/schema.rs:58:6
|
58 | impl<'de> Visitor<'de> for OpenApiMimeTypeVisitor {
| ^^^ ^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
= note: `#[warn(clippy::needless_lifetimes)]` on by default
help: elide the lifetimes
|
58 - impl<'de> Visitor<'de> for OpenApiMimeTypeVisitor {
58 + impl Visitor<'_> for OpenApiMimeTypeVisitor {
|
|
doc list item without indentation:
saphir_cli/src/openapi/generate/mod.rs#L134
warning: doc list item without indentation
--> saphir_cli/src/openapi/generate/mod.rs:134:9
|
134 | /// , the generated doc would contain only the `/api/v2/user` endpoints.
| ^
|
= help: if this is supposed to be its own paragraph, add a blank line
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation
= note: `#[warn(clippy::doc_lazy_continuation)]` on by default
help: indent this line
|
134 | /// , the generated doc would contain only the `/api/v2/user` endpoints.
| ++
|
field `syn` is never read:
saphir_cli/src/openapi/generate/crate_syn_browser/item.rs#L71
warning: field `syn` is never read
--> saphir_cli/src/openapi/generate/crate_syn_browser/item.rs:71:9
|
69 | pub struct ImplItem<'b> {
| -------- field in this struct
70 | pub im: &'b Impl<'b>,
71 | pub syn: &'b SynImplItem,
| ^^^
|
= note: `ImplItem` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
|
fields `item` and `syn` are never read:
saphir_cli/src/openapi/generate/crate_syn_browser/item.rs#L51
warning: fields `item` and `syn` are never read
--> saphir_cli/src/openapi/generate/crate_syn_browser/item.rs:51:9
|
50 | pub struct Struct<'b> {
| ------ fields in this struct
51 | pub item: &'b Item<'b>,
| ^^^^
52 | pub syn: &'b SynItemStruct,
| ^^^
|
= note: `Struct` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
|
fields `item` and `syn` are never read:
saphir_cli/src/openapi/generate/crate_syn_browser/item.rs#L45
warning: fields `item` and `syn` are never read
--> saphir_cli/src/openapi/generate/crate_syn_browser/item.rs:45:9
|
44 | pub struct Enum<'b> {
| ---- fields in this struct
45 | pub item: &'b Item<'b>,
| ^^^^
46 | pub syn: &'b SynItemEnum,
| ^^^
|
= note: `Enum` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
|
fields `item` and `syn` are never read:
saphir_cli/src/openapi/generate/crate_syn_browser/item.rs#L39
warning: fields `item` and `syn` are never read
--> saphir_cli/src/openapi/generate/crate_syn_browser/item.rs:39:9
|
38 | pub struct Use<'b> {
| --- fields in this struct
39 | pub item: &'b Item<'b>,
| ^^^^
40 | pub syn: &'b SynItemUse,
| ^^^
|
= note: `Use` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
|
field `0` is never read:
saphir_cli/src/openapi/generate/crate_syn_browser/item.rs#L32
warning: field `0` is never read
--> saphir_cli/src/openapi/generate/crate_syn_browser/item.rs:32:10
|
32 | Enum(Enum<'b>),
| ---- ^^^^^^^^
| |
| field in this variant
|
= note: `ItemKind` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field
|
32 | Enum(()),
| ~~
|
field `0` is never read:
saphir_cli/src/openapi/generate/crate_syn_browser/item.rs#L31
warning: field `0` is never read
--> saphir_cli/src/openapi/generate/crate_syn_browser/item.rs:31:12
|
31 | Struct(Struct<'b>),
| ------ ^^^^^^^^^^
| |
| field in this variant
|
= note: `ItemKind` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field
|
31 | Struct(()),
| ~~
|
field `0` is never read:
saphir_cli/src/openapi/generate/crate_syn_browser/item.rs#L30
warning: field `0` is never read
--> saphir_cli/src/openapi/generate/crate_syn_browser/item.rs:30:9
|
30 | Use(Use<'b>),
| --- ^^^^^^^
| |
| field in this variant
|
= note: `ItemKind` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field
|
30 | Use(()),
| ~~
|
fields `target` and `path` are never read:
saphir_cli/src/openapi/generate/crate_syn_browser/file.rs#L13
warning: fields `target` and `path` are never read
--> saphir_cli/src/openapi/generate/crate_syn_browser/file.rs:13:9
|
12 | pub struct File<'b> {
| ---- fields in this struct
13 | pub target: &'b Target<'b>,
| ^^^^^^
14 | pub file: SynFile,
15 | pub path: String,
| ^^^^
|
= note: `File` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
= note: `#[warn(dead_code)]` on by default
|
field `syn` is never read:
saphir_cli/src/openapi/generate/crate_syn_browser/item.rs#L71
warning: field `syn` is never read
--> saphir_cli/src/openapi/generate/crate_syn_browser/item.rs:71:9
|
69 | pub struct ImplItem<'b> {
| -------- field in this struct
70 | pub im: &'b Impl<'b>,
71 | pub syn: &'b SynImplItem,
| ^^^
|
= note: `ImplItem` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
|
fields `item` and `syn` are never read:
saphir_cli/src/openapi/generate/crate_syn_browser/item.rs#L51
warning: fields `item` and `syn` are never read
--> saphir_cli/src/openapi/generate/crate_syn_browser/item.rs:51:9
|
50 | pub struct Struct<'b> {
| ------ fields in this struct
51 | pub item: &'b Item<'b>,
| ^^^^
52 | pub syn: &'b SynItemStruct,
| ^^^
|
= note: `Struct` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
|
fields `item` and `syn` are never read:
saphir_cli/src/openapi/generate/crate_syn_browser/item.rs#L45
warning: fields `item` and `syn` are never read
--> saphir_cli/src/openapi/generate/crate_syn_browser/item.rs:45:9
|
44 | pub struct Enum<'b> {
| ---- fields in this struct
45 | pub item: &'b Item<'b>,
| ^^^^
46 | pub syn: &'b SynItemEnum,
| ^^^
|
= note: `Enum` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
|
fields `item` and `syn` are never read:
saphir_cli/src/openapi/generate/crate_syn_browser/item.rs#L39
warning: fields `item` and `syn` are never read
--> saphir_cli/src/openapi/generate/crate_syn_browser/item.rs:39:9
|
38 | pub struct Use<'b> {
| --- fields in this struct
39 | pub item: &'b Item<'b>,
| ^^^^
40 | pub syn: &'b SynItemUse,
| ^^^
|
= note: `Use` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
|
field `0` is never read:
saphir_cli/src/openapi/generate/crate_syn_browser/item.rs#L32
warning: field `0` is never read
--> saphir_cli/src/openapi/generate/crate_syn_browser/item.rs:32:10
|
32 | Enum(Enum<'b>),
| ---- ^^^^^^^^
| |
| field in this variant
|
= note: `ItemKind` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field
|
32 | Enum(()),
| ~~
|
field `0` is never read:
saphir_cli/src/openapi/generate/crate_syn_browser/item.rs#L31
warning: field `0` is never read
--> saphir_cli/src/openapi/generate/crate_syn_browser/item.rs:31:12
|
31 | Struct(Struct<'b>),
| ------ ^^^^^^^^^^
| |
| field in this variant
|
= note: `ItemKind` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field
|
31 | Struct(()),
| ~~
|
field `0` is never read:
saphir_cli/src/openapi/generate/crate_syn_browser/item.rs#L30
warning: field `0` is never read
--> saphir_cli/src/openapi/generate/crate_syn_browser/item.rs:30:9
|
30 | Use(Use<'b>),
| --- ^^^^^^^
| |
| field in this variant
|
= note: `ItemKind` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field
|
30 | Use(()),
| ~~
|
fields `target` and `path` are never read:
saphir_cli/src/openapi/generate/crate_syn_browser/file.rs#L13
warning: fields `target` and `path` are never read
--> saphir_cli/src/openapi/generate/crate_syn_browser/file.rs:13:9
|
12 | pub struct File<'b> {
| ---- fields in this struct
13 | pub target: &'b Target<'b>,
| ^^^^^^
14 | pub file: SynFile,
15 | pub path: String,
| ^^^^
|
= note: `File` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
= note: `#[warn(dead_code)]` on by default
|
clippy_check
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
clippy_check
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
clippy_check
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
clippy_check
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
clippy_check
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|