From 4798d009b10d2b620cd52561729cde8a96a2967c Mon Sep 17 00:00:00 2001 From: Nikolay Volf Date: Wed, 6 Mar 2024 09:59:36 +0300 Subject: [PATCH] fix(gtest): Remove useless brackets (#3783) --- gtest/src/program.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gtest/src/program.rs b/gtest/src/program.rs index ae8527f5bc6..7d332561285 100644 --- a/gtest/src/program.rs +++ b/gtest/src/program.rs @@ -698,7 +698,7 @@ impl<'a> Program<'a> { /// # use gtest::{state_args, Program, System, WasmProgram, Result}; /// # fn doctest() -> Result<()> { /// # #[derive(Debug)] - /// # struct MockWasm {} + /// # struct MockWasm; /// # /// # impl WasmProgram for MockWasm { /// # fn init(&mut self, _payload: Vec) -> Result>, &'static str> { unimplemented!() } @@ -708,7 +708,7 @@ impl<'a> Program<'a> { /// # fn state(&mut self) -> Result, &'static str> { unimplemented!() } /// # } /// # let system = System::new(); - /// # let program = Program::mock(&system, MockWasm { }); + /// # let program = Program::mock(&system, MockWasm); /// # let ARG_1 = 0u8; /// # let ARG_2 = 0u8; /// //Read state bytes with no arguments passed to wasm.