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 } }