Commit 0040ab1
committed
fix: resolve clippy warnings and code quality issues
Code Quality Improvements:
✅ Fixed legacy numeric constants warnings
- Updated i32::max_value() to i32::MAX in gaussdb-types/src/chrono_04.rs
- Updated i32::min_value() to i32::MIN in gaussdb-types/src/chrono_04.rs
- Updated i32::max_value() to i32::MAX in gaussdb-types/src/time_02.rs
- Updated i32::min_value() to i32::MIN in gaussdb-types/src/time_02.rs
- Updated i32::max_value() to i32::MAX in gaussdb-types/src/time_03.rs
- Updated i32::min_value() to i32::MIN in gaussdb-types/src/time_03.rs
✅ Cleaned up unused imports
- Removed unused std::path::PathBuf import from tokio-gaussdb/src/client.rs
- Added conditional import for PathBuf only on unix platforms
- Removed unused std::path::Path import from gaussdb/src/config.rs
✅ Code formatting and standards compliance
- Applied cargo fmt to ensure consistent code formatting
- All clippy warnings resolved with -D warnings flag
- Code now passes strict static analysis checks
Test Verification Results:
- gaussdb: 18/22 tests passing (4 ignored - expected)
- gaussdb-derive-test: 26/26 tests passing (100% success rate)
- gaussdb-protocol: 29/29 tests passing (100% success rate)
- tokio-gaussdb: 5/5 tests passing (100% success rate)
Static Analysis Results:
✅ cargo clippy --all-targets --all-features -- -D warnings: PASSED
✅ cargo fmt --all: PASSED
✅ All automated tests: PASSED
This ensures the codebase meets high quality standards and is ready
for code review and submission.1 parent 164a72e commit 0040ab1
File tree
9 files changed
+9
-9
lines changed- gaussdb-types/src
- gaussdb/src
- tokio-gaussdb/src
9 files changed
+9
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
123 | 123 | | |
124 | 124 | | |
125 | 125 | | |
126 | | - | |
| 126 | + | |
127 | 127 | | |
128 | 128 | | |
129 | 129 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | 3 | | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | 3 | | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
2 | 3 | | |
3 | 4 | | |
4 | 5 | | |
5 | 6 | | |
6 | | - | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
2 | 3 | | |
3 | 4 | | |
4 | 5 | | |
5 | 6 | | |
6 | | - | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
75 | | - | |
| 75 | + | |
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
79 | | - | |
| 79 | + | |
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
| 30 | + | |
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| |||
0 commit comments