Fix compilation error and deprecations

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
This commit is contained in:
Jiahao XU 2024-07-12 23:47:22 +10:00
parent 03c520e7ce
commit 2bd9c1efee
No known key found for this signature in database
GPG key ID: 76D1E687CA3C4928
3 changed files with 18 additions and 18 deletions

View file

@ -210,7 +210,7 @@ root = "/some/path" # `cargo install` destination directory
);
let http = config.http.unwrap();
assert_eq!(http.proxy.unwrap(), CompactString::new_inline("host:port"));
assert_eq!(http.proxy.unwrap(), CompactString::const_new("host:port"));
assert_eq!(http.timeout.unwrap(), 30);
assert_eq!(http.cainfo.unwrap(), Path::new("root").join("cert.pem"));