dependabot[bot] on npm_and_yarn
Bump node-sass from 4.11.0 to 7… (compare)
kurnevsky on dht_state
refactor(dht): introduce a sing… (compare)
kurnevsky on dht_state
refactor(dht): introduce a sing… (compare)
#[derive(Debug, Clone, PartialEq)]
pub enum Err<E> {
Incomplete(Needed),
Error(E),
Failure(E),
}
#[derive(Clone, Debug, PartialEq, Fail)]
pub enum GetPayloadErrorKind {
/// Error indicates that received payload of encrypted packet can't be decrypted
#[fail(display = "Decrypt payload error")]
Decrypt,
/// Error indicates that decrypted payload of packet can't be parsed
#[fail(display = "Deserialize payload error: {:?}, data: {:?}", error, payload)]
Deserialize {
/// Parsing error
error: nom::Err<(&[u8], ErrorKind)>,
/// Received payload of packet
payload: Vec<u8>,
}
}
error[E0106]: missing lifetime specifier
--> src/toxcore/dht/packet/errors.rs:64:30
|
64 | error: Box<nom::Err<(&[u8], ErrorKind)>>,
| ^ expected lifetime parameter
Fail
requires static but can’t give static.
error[E0597]: `decrypted` does not live long enough
--> src/toxcore/dht/packet/ping_request.rs:93:46
|
93 | match PingRequestPayload::from_bytes(&decrypted) {
| -------------------------------^^^^^^^^^^-
| | |
| | borrowed value does not live long enough
| argument requires that `decrypted` is borrowed for `'static`
…
branch file_sending
:
error[E0495]: cannot infer an appropriate lifetime for autoref due to conflicting requirements
--> examples/echo.rs:169:31
|
169 | Box::new(fs_c.send_file_control(pk, packet.file_id, TransferDirection::Receive, ControlType::Accept)
| ^^^^^^^^^^^^^^^^^
|
Any idea how to fix it?