Skip to content

Commit

Permalink
fix: clippy lint
Browse files Browse the repository at this point in the history
  • Loading branch information
iamnamananand996 committed Aug 27, 2024
1 parent 203ee8c commit afe4215
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
12 changes: 6 additions & 6 deletions cli/src/rust_template.rs
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
use crate::templates::program::{create_program_template_multiple, create_program_template_single};
use crate::templates::workspace::{
cargo_toml, cargo_toml_with_serde, workspace_manifest, xargo_toml,
};
use anchor_cli::rust_template::ProgramTemplate;
use anchor_cli::{create_files, Files};
use anchor_lang_idl::types::{IdlArrayLen, IdlGenericArg, IdlType};
use anyhow::Result;
use std::path::{Path, PathBuf};
use crate::templates::{
component::create_component_template_simple, system::create_system_template_simple,

use crate::templates::component::create_component_template_simple;
use crate::templates::program::{create_program_template_multiple, create_program_template_single};
use crate::templates::system::create_system_template_simple;
use crate::templates::workspace::{
cargo_toml, cargo_toml_with_serde, workspace_manifest, xargo_toml,
};

/// Create a component from the given name.
Expand Down
6 changes: 3 additions & 3 deletions cli/src/templates/system.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use std::path::Path;
use anchor_cli::Files;
use heck::ToSnakeCase; // Import the trait
use heck::ToSnakeCase;
use std::path::Path;

/// Create a system which operates on a Position component.
pub fn create_system_template_simple(name: &str, program_path: &Path) -> Files {
Expand Down Expand Up @@ -33,4 +33,4 @@ pub mod {} {{
name.to_snake_case(),
),
)]
}
}

0 comments on commit afe4215

Please sign in to comment.