Browse Source

clippy: allow large_enum_variant in token command error and svm example (#5961)

Yihau Chen 7 months ago
parent
commit
6e002029fb
2 changed files with 2 additions and 0 deletions
  1. 1 0
      svm/examples/json-rpc/client/src/utils.rs
  2. 1 0
      tokens/src/commands.rs

+ 1 - 0
svm/examples/json-rpc/client/src/utils.rs

@@ -8,6 +8,7 @@ use {
     yaml_rust::YamlLoader,
 };
 
+#[allow(clippy::large_enum_variant)]
 #[derive(Error, Debug)]
 pub enum Error {
     #[error("failed to read solana config file: ({0})")]

+ 1 - 0
tokens/src/commands.rs

@@ -104,6 +104,7 @@ impl From<Vec<FundingSource>> for FundingSources {
 
 type StakeExtras = Vec<(Keypair, Option<DateTime<Utc>>)>;
 
+#[allow(clippy::large_enum_variant)]
 #[derive(thiserror::Error, Debug)]
 pub enum Error {
     #[error("I/O error")]