]> git.proxmox.com Git - proxmox.git/commit
login: improve response handling
authorWolfgang Bumiller <w.bumiller@proxmox.com>
Tue, 1 Aug 2023 13:16:07 +0000 (15:16 +0200)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Tue, 1 Aug 2023 13:21:09 +0000 (15:21 +0200)
commitd6a550b71c4aa71bfce96b0deadd9d8e2ee0c2a7
tree3f29186e8a74ddf525d9f2a8bc2aed069ff4dd31
parent5859017061e7e722c601aab47016a445e776740e
login: improve response handling

we have use cases where we have bytes, and serde_json has a from_slice
method, doing the utf-8 check unnecessarily is pointless, while going
from &str to &[u8] is free...

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
proxmox-login/src/lib.rs