We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
cargo check
1 parent 241b8d7 commit cf3c27fCopy full SHA for cf3c27f
2 files changed
examples/test.sh
@@ -4,6 +4,17 @@ set -Cue
4
5
EXAMPLES=$(pwd)
6
7
+# First, check the buildability of all examples
8
+for directory in ./*/; do
9
+ if [ "$(basename $directory)" != "target" ]; then
10
+ cd $directory
11
+ cargo check
12
+ cd ..
13
+ fi
14
+done
15
+
16
+# Now, run tests for each example if needed
17
18
cd $EXAMPLES/static_files && \
19
cargo test
20
examples/websocket/src/main.rs
@@ -143,7 +143,7 @@ async fn main() {
143
}
144
145
Ohkami::new((Logger,
146
- "/".Dir("./template").omit_extensions([".html"]),
+ "/".Dir("./template").omit_extensions(&[".html"]),
147
"/echo1".GET(echo_text),
148
"/echo2/:name".GET(echo_text_2),
149
"/echo3/:name".GET(echo_text_3),
0 commit comments