Skip to content

Commit 8fc09bb

Browse files
jdettercloutiertyler
authored andcommitted
Run clippy on default module (#7)
* Clippy runs on default module * Fix clippy issue with default module --------- Co-authored-by: Boppy <[email protected]>
1 parent abcf896 commit 8fc09bb

File tree

3 files changed

+19
-2
lines changed

3 files changed

+19
-2
lines changed

crates/cli/src/subcommands/project/lib._rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
use spacetimedb::{spacetimedb, ReducerContext};
2-
use log;
32

43
#[spacetimedb(table)]
54
pub struct Person {

test/run-smoke-tests.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/bash
22

33
set -euo pipefail
4-
set -x
4+
55
cd "$(dirname "$0")"
66

77
CRST='\033[0m' # Text Reset
@@ -20,6 +20,9 @@ export SPACETIME_SKIP_CLIPPY=1
2020
CONTAINER_NAME=$(docker ps | grep node | awk '{print $NF}')
2121
docker logs "$CONTAINER_NAME"
2222

23+
rustup update
24+
rustup component add clippy
25+
2326
source "lib.include"
2427
mkdir -p ~/.spacetime
2528
if [ -f ~/.spacetime/config.toml ] ; then
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#!/bin/bash
2+
3+
if [ "$DESCRIBE_TEST" = 1 ] ; then
4+
echo "This tests to make sure that the default rust module has no clippy errors or warnings"
5+
exit
6+
fi
7+
8+
set -euox pipefail
9+
10+
source "./test/lib.include"
11+
12+
create_project
13+
14+
cd "$PROJECT_PATH"
15+
run_test cargo clippy -- -D warnings

0 commit comments

Comments
 (0)