diff options
author | Profpatsch <mail@profpatsch.de> | 2021-02-06T21·43+0100 |
---|---|---|
committer | Profpatsch <mail@profpatsch.de> | 2021-02-06T22·29+0000 |
commit | 32a5312dd83bc24b990e43a655c70337f245b9a5 (patch) | |
tree | 23f0bfd69ac2aecd35f96c554b85b6a40d47c112 /users/Profpatsch/read-http.rs | |
parent | e207785e1fc78d06381b369c3b71b7e6becdbf80 (diff) |
feat(users/Profpatsch/netencode): `encode()` impl for T and U r/2187
Also change the toplevel `encode()` to take a `&U` instead of an owned `U`. Change-Id: I8e51540cc531e70ae1c94e3676f4dd88da7a924d Reviewed-on: https://cl.tvl.fyi/c/depot/+/2491 Tested-by: BuildkiteCI Reviewed-by: Profpatsch <mail@profpatsch.de>
Diffstat (limited to 'users/Profpatsch/read-http.rs')
-rw-r--r-- | users/Profpatsch/read-http.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/users/Profpatsch/read-http.rs b/users/Profpatsch/read-http.rs index 60afa96af9c5..becd92b816b0 100644 --- a/users/Profpatsch/read-http.rs +++ b/users/Profpatsch/read-http.rs @@ -171,7 +171,7 @@ fn write_dict<'buf, 'a>(mut http: HashMap<&str, U<'a>>, headers: &'a HashMap<Str }; netencode::encode( &mut std::io::stdout(), - U::Record(http) + &U::Record(http) )?; Ok(()) } |