From 879f25ac662eb4e49eb53a97c4a1fc6623b34f43 Mon Sep 17 00:00:00 2001 From: Juan Aguilar Santillana Date: Sat, 29 Jul 2023 03:43:59 +0200 Subject: [PATCH] fix: minor issues --- .github/workflows/checks.yml | 2 +- yarte_helpers/src/at_helpers.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/checks.yml b/.github/workflows/checks.yml index afbe093a..2028c2bf 100644 --- a/.github/workflows/checks.yml +++ b/.github/workflows/checks.yml @@ -29,7 +29,7 @@ jobs: - uses: actions-rs/toolchain@v1 with: profile: minimal - components: fmt + components: rustfmt toolchain: nightly override: true - uses: actions-rs/cargo@v1 diff --git a/yarte_helpers/src/at_helpers.rs b/yarte_helpers/src/at_helpers.rs index 5d5efefc..49135ca6 100644 --- a/yarte_helpers/src/at_helpers.rs +++ b/yarte_helpers/src/at_helpers.rs @@ -11,7 +11,7 @@ pub mod json { impl<'a, T> Clone for Json<'a, T> { fn clone(&self) -> Self { - Json(self.0) + *self } } @@ -36,7 +36,7 @@ pub mod json { impl<'a, T> Clone for JsonPretty<'a, T> { fn clone(&self) -> Self { - JsonPretty(self.0) + *self } }