mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-06-29 05:56:37 +00:00
Use CompactString::const_new
when possible
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
This commit is contained in:
parent
2bd9c1efee
commit
b8539071cd
3 changed files with 5 additions and 5 deletions
|
@ -218,7 +218,7 @@ root = "/some/path" # `cargo install` destination directory
|
|||
assert_eq!(env.len(), 3);
|
||||
assert_eq!(
|
||||
env.get("ENV_VAR_NAME").unwrap(),
|
||||
&Env::Value(CompactString::new("value"))
|
||||
&Env::Value(CompactString::const_new("value"))
|
||||
);
|
||||
assert_eq!(
|
||||
env.get("ENV_VAR_NAME_2").unwrap(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue