From 6f90dea5438d404643c68beb3b503fd2392a76ca Mon Sep 17 00:00:00 2001 From: Satoshi Otomakan Date: Fri, 24 Nov 2023 18:41:04 +0100 Subject: [PATCH] [Codegen]: Fix warnings --- codegen-v2/src/codegen/cpp/entry_generator.rs | 4 ++-- codegen-v2/src/codegen/rust/coin_crate.rs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/codegen-v2/src/codegen/cpp/entry_generator.rs b/codegen-v2/src/codegen/cpp/entry_generator.rs index f7c453b719d..49f341ab35f 100644 --- a/codegen-v2/src/codegen/cpp/entry_generator.rs +++ b/codegen-v2/src/codegen/cpp/entry_generator.rs @@ -7,9 +7,9 @@ use crate::codegen::cpp::cpp_source_directory; use crate::codegen::template_generator::TemplateGenerator; use crate::registry::CoinItem; -use crate::{Error, Result}; +use crate::Result; +use std::fs; use std::path::PathBuf; -use std::{fs, io}; const ENTRY_HEADER_TEMPLATE: &str = include_str!("templates/Entry.h"); diff --git a/codegen-v2/src/codegen/rust/coin_crate.rs b/codegen-v2/src/codegen/rust/coin_crate.rs index 330d84e26b2..4586f66ae3f 100644 --- a/codegen-v2/src/codegen/rust/coin_crate.rs +++ b/codegen-v2/src/codegen/rust/coin_crate.rs @@ -8,9 +8,9 @@ use crate::codegen::rust::chains_directory; use crate::codegen::template_generator::TemplateGenerator; use crate::coin_id::CoinId; use crate::registry::CoinItem; -use crate::{Error, Result}; +use crate::Result; +use std::fs; use std::path::PathBuf; -use std::{fs, io}; const BLOCKCHAIN_ADDRESS_TEMPLATE: &str = include_str!("templates/blockchain_crate/address.rs"); const BLOCKCHAIN_COMPILER_TEMPLATE: &str = include_str!("templates/blockchain_crate/compiler.rs");