From 5b7687ed8fb5254e7ba0d0c90138f6ede76f6279 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ale=C5=A1=20Bizjak?= Date: Mon, 10 Jul 2023 21:02:36 +0200 Subject: [PATCH 1/2] Fix default template to also support no-std. --- templates/default/src/lib.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/templates/default/src/lib.rs b/templates/default/src/lib.rs index f9eb7929..a304837b 100644 --- a/templates/default/src/lib.rs +++ b/templates/default/src/lib.rs @@ -1,3 +1,5 @@ +#![cfg_attr(not(feature = "std"), no_std)] + //! # A Concordium V1 smart contract use concordium_std::*; use core::fmt::Debug; From 520b0a3e906eb3fe4888a0e09bc7ca6060fd5a5d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ale=C5=A1=20Bizjak?= Date: Tue, 11 Jul 2023 08:03:26 +0200 Subject: [PATCH 2/2] Remove "Error" suffix since clippy complains about it. --- templates/default/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/default/src/lib.rs b/templates/default/src/lib.rs index a304837b..8ed014cc 100644 --- a/templates/default/src/lib.rs +++ b/templates/default/src/lib.rs @@ -15,7 +15,7 @@ pub struct State { enum Error { /// Failed parsing the parameter. #[from(ParseError)] - ParseParamsError, + ParseParams, /// Your error YourError, }