From dbc75f11eefa64c26eedff09536e2009c21f3fdd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Krzysztof=20Pobiar=C5=BCyn?= Date: Fri, 19 Jan 2024 11:50:08 +0100 Subject: [PATCH] Fix import errors and handle contract name parsing --- src/actions/build.rs | 2 +- src/actions/schema.rs | 2 +- src/actions/utils.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/actions/build.rs b/src/actions/build.rs index fb05734..58e9e2a 100644 --- a/src/actions/build.rs +++ b/src/actions/build.rs @@ -1,7 +1,7 @@ //! Module for managing and building backends. use super::utils; -use crate::{command, log, paths, project::Project}; +use crate::{command, errors::Error, log, paths, project::Project}; /// BuildAction configuration. pub struct BuildAction<'a> { diff --git a/src/actions/schema.rs b/src/actions/schema.rs index 1524f1e..6bfc108 100644 --- a/src/actions/schema.rs +++ b/src/actions/schema.rs @@ -1,7 +1,7 @@ //! Module for generating contracts schema. use super::utils; -use crate::{command, log, project::Project}; +use crate::{command, errors::Error, log, project::Project}; /// SchemaAction configuration. pub struct SchemaAction<'a> { diff --git a/src/actions/utils.rs b/src/actions/utils.rs index 018d518..164297d 100644 --- a/src/actions/utils.rs +++ b/src/actions/utils.rs @@ -24,7 +24,7 @@ pub fn contracts(project: &Project, names_string: String) -> Result