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)]