We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
[env]
relative
1 parent adc955f commit 51961acCopy full SHA for 51961ac
xbuild/src/cargo/config.rs
@@ -1,4 +1,4 @@
1
-use anyhow::{Context, Result};
+use anyhow::Result;
2
use serde::Deserialize;
3
use std::{
4
borrow::Cow,
@@ -113,16 +113,13 @@ impl EnvOption {
113
value,
114
relative: true,
115
force: _,
116
- } => {
117
- let value = config_parent.as_ref().join(value);
118
- let value = dunce::canonicalize(&value)
119
- .with_context(|| format!("Failed to canonicalize `{}`", value.display()))?;
120
- value
121
- .into_os_string()
122
- .into_string()
123
- .map_err(VarError::NotUnicode)?
124
- .into()
125
- }
+ } => config_parent
+ .as_ref()
+ .join(value)
+ .into_os_string()
+ .into_string()
+ .map_err(VarError::NotUnicode)?
+ .into(),
126
Self::String(value) | Self::Value { value, .. } => value.into(),
127
})
128
}
0 commit comments