fix(uri): prevent panic on clone if URI components are empty #164
Annotations
10 errors and 1 warning
test (libcoap-rs, gnutls)
Process completed with exit code 101.
|
test (libcoap-rs, tinydtls)
Process completed with exit code 101.
|
[clippy (libcoap-rs)] libcoap/src/types.rs#L697:
libcoap/src/types.rs#L697
error[E0308]: mismatched types
--> libcoap/src/types.rs:697:87
|
697 | ...rap_or_else(|| std::slice::from_raw_parts((*raw_uri).host.s, (*raw_uri).host.length));
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `&[_; 0]`, found `&[u8]`
|
= note: expected reference `&[_; 0]`
found reference `&[u8]`
|
[clippy (libcoap-rs)] libcoap/src/types.rs#L698:
libcoap/src/types.rs#L698
error[E0308]: mismatched types
--> libcoap/src/types.rs:698:87
|
698 | ...rap_or_else(|| std::slice::from_raw_parts((*raw_uri).path.s, (*raw_uri).path.length));
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `&[_; 0]`, found `&[u8]`
|
= note: expected reference `&[_; 0]`
found reference `&[u8]`
|
[clippy (libcoap-rs)] libcoap/src/types.rs#L699:
libcoap/src/types.rs#L699
error[E0308]: mismatched types
--> libcoap/src/types.rs:699:89
|
699 | ...ap_or_else(|| std::slice::from_raw_parts((*raw_uri).query.s, (*raw_uri).query.length));
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `&[_; 0]`, found `&[u8]`
|
= note: expected reference `&[_; 0]`
found reference `&[u8]`
|
lint (libcoap-rs)
reviewdog exited with status code: 1
|
test (libcoap-rs, mbedtls)
Process completed with exit code 101.
|
lint (libcoap-sys)
The job was canceled because "libcoap-rs" failed.
|
coverage
Process completed with exit code 1.
|
test (libcoap-rs, openssl)
Process completed with exit code 101.
|
lint (libcoap-rs)
The following actions use a deprecated Node.js version and will be forced to run on node20: giraffate/clippy-action@main. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|