Commit 1e21c37
committed
fix: resolve all remaining syntax errors and apply consistent formatting
This commit completes the comprehensive syntax error resolution across the
entire WRT codebase and applies consistent formatting using cargo +nightly fmt.
The primary issues addressed were systematic syntax errors caused by missing
closing parentheses, likely resulting from a previous faulty mass text
replacement operation. The error pattern was consistent throughout:
- Missing closing parentheses in function calls: `function(args;` → `function(args);`
- Missing closing parentheses in method calls: `object.method);` → `object.method();`
- Missing closing parentheses in error constructors and assert macros
- Malformed module references and test structure inconsistencies
Key improvements:
- Resolved syntax errors in ~200+ files across all crates
- Applied consistent Rust formatting standards via cargo +nightly fmt
- Fixed critical runtime components including component instantiation,
instruction parsing, atomic execution, and WASI-NN implementation
- Corrected test module structure and removed invalid module references
- Cleaned up temporary build artifacts and ICE reports
- Added rustfmt-local development tool for local formatting
The codebase now maintains clean, consistent formatting and compiles
successfully with no syntax errors, providing a stable foundation for
continued development.
Affected crates: wrt-format, wrt-host, wrt-logging, wrt-platform, wrt-runtime,
wrt-tests, wrt-wasi, wrtd
Testing: Verified with `cargo +nightly fmt --check` and `cargo check`1 parent da191c6 commit 1e21c37
File tree
212 files changed
+29557
-21119
lines changed- .cargo
- wrt-format
- src
- wrt-host/src
- wrt-logging/src
- wrt-platform
- src
- simd
- tests
- wrt-runtime
- examples
- src
- component
- engine
- resources
- stackless
- state
- tests
- type_conversion
- tests
- wrt-tests/integration
- atomic
- component_model
- core
- decoder
- documentation
- formal_verification
- memory
- no_std
- parser
- wrt-wasi/src
- host_provider
- nn
- tests
- preview2
- preview3
- wrtd/src
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
212 files changed
+29557
-21119
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | | - | |
4 | 1 | | |
5 | 2 | | |
6 | 3 | | |
| |||
10 | 7 | | |
11 | 8 | | |
12 | 9 | | |
13 | | - | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
0 commit comments