Closed
Description
request
is declared as
pub fn request<S, D>(method: Method, url: &str, data: Option<S>) -> Result<Option<D>>
The compiler errors when data
is None
because now the type S
is undefined.
error: unable to infer enough type information about `_`; type annotations or generic parameter binding required
There is a failing test here which demonstrates the desired behavior.
Metadata
Metadata
Assignees
Labels
No labels