mirror of
https://github.com/helix-editor/helix.git
synced 2024-11-22 09:26:19 +04:00
parent
a2e11af608
commit
349e2b5f0e
@ -198,8 +198,8 @@ fn visit_map<M>(self, mut map: M) -> Result<Self::Value, M::Error>
|
||||
Some((key, suffix)) if key == "suffix" => Ok(FileType::Suffix({
|
||||
// FIXME: use `suffix.replace('/', std::path::MAIN_SEPARATOR_STR)`
|
||||
// if MSRV is updated to 1.68
|
||||
let mut seperator = [0; 1];
|
||||
suffix.replace('/', std::path::MAIN_SEPARATOR.encode_utf8(&mut seperator))
|
||||
let mut separator = [0; 1];
|
||||
suffix.replace('/', std::path::MAIN_SEPARATOR.encode_utf8(&mut separator))
|
||||
})),
|
||||
Some((key, _value)) => Err(serde::de::Error::custom(format!(
|
||||
"unknown key in `file-types` list: {}",
|
||||
|
Loading…
Reference in New Issue
Block a user