Skip to content

Commit

Permalink
Ignore deadcode in empty template
Browse files Browse the repository at this point in the history
  • Loading branch information
jawoznia committed Nov 7, 2024
1 parent 9fbf5b3 commit c8f1820
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions docs-test-gen/templates/empty.tpl
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#![allow(unexpected_cfgs, dead_code, unused_variables)]

#[test]
fn doctest() {
{{code}}
Expand Down
2 changes: 1 addition & 1 deletion src/pages/tutorial/cw-contract/entry-points.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ To start, we will go with three basic entry points:
We will start with the instantiate entry point:

```rust copy filename="src/lib.rs" template="empty"
use cosmwasm_std::{entry_point, Binary, Deps, DepsMut, Empty, Env, MessageInfo, Response, StdResult};
use cosmwasm_std::{entry_point, DepsMut, Empty, Env, MessageInfo, Response, StdResult};

#[entry_point]
pub fn instantiate(_deps: DepsMut, _env: Env, _info: MessageInfo, _msg: Empty) -> StdResult<Response> {
Expand Down

0 comments on commit c8f1820

Please sign in to comment.