Closed rylev closed 4 years ago
I don't believe this breaks existing code because of
impl<T> From<T> for T
This would break existing code where the type of the expression inside .body()
is inferred frmo body
s signature, e.g.
let response: Response<Body> = Response::builder().body("hello".into());
I believe this would also require the function to take 2 generics instead of one.
This would allow the user to write:
instead of:
I don't believe this breaks existing code because of
impl<T> From<T> for T