]> git.proxmox.com Git - proxmox-backup.git/commit
server: rest: refactor code to avoid multiple log_response calls
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 15 Oct 2020 07:03:54 +0000 (09:03 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 15 Oct 2020 11:58:47 +0000 (13:58 +0200)
commitb947b1e7ee93bdc1a842bccd11d5a3914a26611f
tree1230d44193e6ffe81f38b72d5baa7e4167eca429
parent1e80fb8e9236f7a0c4dbb77c7f9f1f1a5744f668
server: rest: refactor code to avoid multiple log_response calls

The 'Ok::<_, Self::Error>(res)' type annotation was from a time where
we could not use async, and had a combinator here which needed
explicity type information. We switched over to async in commit
91e4587343c155cd3aa9274bd2c736dcc1ccf977 and, as the type annotation
is already included in the Future type, we can safely drop it.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
src/server/rest.rs