From 1050c99899dfe5b40b31de5ae53433d7c68718bc Mon Sep 17 00:00:00 2001 From: clearloop <26088946+clearloop@users.noreply.github.com> Date: Fri, 1 Dec 2023 06:37:42 +0800 Subject: [PATCH] chore(clippy): make clippy happy --- compiler/filetests/build.rs | 2 +- examples/constructor.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/compiler/filetests/build.rs b/compiler/filetests/build.rs index 8e80e5962..36ee7a2af 100644 --- a/compiler/filetests/build.rs +++ b/compiler/filetests/build.rs @@ -163,7 +163,7 @@ impl Tests { fn push(&mut self, p: &Path, wasm: &[u8]) -> Result<()> { let (module, name) = ( Self::file_name(p.parent().expect("parent not found")), - Self::file_name(&p.with_extension("")), + Self::file_name(p.with_extension("")), ); let ident_name = name.replace('-', "_"); diff --git a/examples/constructor.rs b/examples/constructor.rs index 1d93160e4..56b427e91 100644 --- a/examples/constructor.rs +++ b/examples/constructor.rs @@ -1,4 +1,4 @@ -//! Storage example. +//! Constructor example. #![cfg_attr(target_arch = "wasm32", no_std)] #![cfg_attr(target_arch = "wasm32", no_main)]