Commit 2c20ef5
committed
deploy: Fix disallowed str::len in user-agent test
The repo disallows `str::len` (clippy::disallowed-methods) to avoid
confusing byte length with character count. Rework the assertion to
use `strip_prefix`, which both checks the prefix and gives us the
remainder to assert is non-empty.
Assisted-by: opencode (Claude Opus 4.8)
Signed-off-by: Colin Walters <walters@verbum.org>1 parent 4bdc651 commit 2c20ef5
1 file changed
Lines changed: 4 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1402 | 1402 | | |
1403 | 1403 | | |
1404 | 1404 | | |
1405 | | - | |
1406 | | - | |
1407 | | - | |
1408 | | - | |
1409 | 1405 | | |
| 1406 | + | |
| 1407 | + | |
| 1408 | + | |
1410 | 1409 | | |
1411 | | - | |
| 1410 | + | |
1412 | 1411 | | |
1413 | 1412 | | |
1414 | 1413 | | |
| |||
0 commit comments