fix: audit findings #95
reviewdog [clippy] report
reported by reviewdog 🐶
Findings (2)
programs/gateway/src/lib.rs|757 col 10| warning: unexpected cfg
condition value: anchor-debug
--> programs/gateway/src/lib.rs:757:10
|
757 | #[derive(Accounts)]
| ^^^^^^^^
|
= note: expected values for feature
are: cpi
, default
, idl-build
, no-entrypoint
, no-idl
, and no-log-ix-name
= note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate
= help: try referring to Accounts
crate for guidance on how handle this unexpected cfg
= help: the derive macro Accounts
may come from an old version of the anchor_derive_accounts
crate, try updating your dependency with cargo update -p anchor_derive_accounts
= note: see https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html for more information about checking conditional configuration
= note: this warning originates in the derive macro Accounts
(in Nightly builds, run with -Z macro-backtrace for more info)
programs/gateway/src/lib.rs|769 col 10| warning: unexpected cfg
condition value: anchor-debug
--> programs/gateway/src/lib.rs:769:10
|
769 | #[derive(Accounts)]
| ^^^^^^^^
|
= note: expected values for feature
are: cpi
, default
, idl-build
, no-entrypoint
, no-idl
, and no-log-ix-name
= note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate
= help: try referring to Accounts
crate for guidance on how handle this unexpected cfg
= help: the derive macro Accounts
may come from an old version of the anchor_derive_accounts
crate, try updating your dependency with cargo update -p anchor_derive_accounts
= note: see https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html for more information about checking conditional configuration
= note: this warning originates in the derive macro Accounts
(in Nightly builds, run with -Z macro-backtrace for more info)
Filtered Findings (0)
Annotations
Check warning on line 757 in programs/gateway/src/lib.rs
github-actions / clippy
[clippy] programs/gateway/src/lib.rs#L757
warning: unexpected `cfg` condition value: `anchor-debug`
--> programs/gateway/src/lib.rs:757:10
|
757 | #[derive(Accounts)]
| ^^^^^^^^
|
= note: expected values for `feature` are: `cpi`, `default`, `idl-build`, `no-entrypoint`, `no-idl`, and `no-log-ix-name`
= note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate
= help: try referring to `Accounts` crate for guidance on how handle this unexpected cfg
= help: the derive macro `Accounts` may come from an old version of the `anchor_derive_accounts` crate, try updating your dependency with `cargo update -p anchor_derive_accounts`
= note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration
= note: this warning originates in the derive macro `Accounts` (in Nightly builds, run with -Z macro-backtrace for more info)
Raw output
programs/gateway/src/lib.rs:757:10:w:warning: unexpected `cfg` condition value: `anchor-debug`
--> programs/gateway/src/lib.rs:757:10
|
757 | #[derive(Accounts)]
| ^^^^^^^^
|
= note: expected values for `feature` are: `cpi`, `default`, `idl-build`, `no-entrypoint`, `no-idl`, and `no-log-ix-name`
= note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate
= help: try referring to `Accounts` crate for guidance on how handle this unexpected cfg
= help: the derive macro `Accounts` may come from an old version of the `anchor_derive_accounts` crate, try updating your dependency with `cargo update -p anchor_derive_accounts`
= note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration
= note: this warning originates in the derive macro `Accounts` (in Nightly builds, run with -Z macro-backtrace for more info)
__END__
Check warning on line 769 in programs/gateway/src/lib.rs
github-actions / clippy
[clippy] programs/gateway/src/lib.rs#L769
warning: unexpected `cfg` condition value: `anchor-debug`
--> programs/gateway/src/lib.rs:769:10
|
769 | #[derive(Accounts)]
| ^^^^^^^^
|
= note: expected values for `feature` are: `cpi`, `default`, `idl-build`, `no-entrypoint`, `no-idl`, and `no-log-ix-name`
= note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate
= help: try referring to `Accounts` crate for guidance on how handle this unexpected cfg
= help: the derive macro `Accounts` may come from an old version of the `anchor_derive_accounts` crate, try updating your dependency with `cargo update -p anchor_derive_accounts`
= note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration
= note: this warning originates in the derive macro `Accounts` (in Nightly builds, run with -Z macro-backtrace for more info)
Raw output
programs/gateway/src/lib.rs:769:10:w:warning: unexpected `cfg` condition value: `anchor-debug`
--> programs/gateway/src/lib.rs:769:10
|
769 | #[derive(Accounts)]
| ^^^^^^^^
|
= note: expected values for `feature` are: `cpi`, `default`, `idl-build`, `no-entrypoint`, `no-idl`, and `no-log-ix-name`
= note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate
= help: try referring to `Accounts` crate for guidance on how handle this unexpected cfg
= help: the derive macro `Accounts` may come from an old version of the `anchor_derive_accounts` crate, try updating your dependency with `cargo update -p anchor_derive_accounts`
= note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration
= note: this warning originates in the derive macro `Accounts` (in Nightly builds, run with -Z macro-backtrace for more info)
__END__