Update pinned rustc version

This commit is contained in:
Vincent Prouillet 2022-07-10 16:35:35 +02:00
parent 342569a92a
commit bf7dbfeaae
2 changed files with 4 additions and 4 deletions

View file

@ -21,7 +21,7 @@ stages:
rustup_toolchain: stable
linux-pinned:
imageName: 'ubuntu-20.04'
rustup_toolchain: 1.56.0
rustup_toolchain: 1.57.0
pool:
vmImage: $(imageName)
steps:

View file

@ -99,12 +99,12 @@ fn find_lang_for(entry: &Path, base_dir: &Path) -> Option<(String, Option<String
Ok(path_without_prefix) => path_without_prefix.to_slash_lossy(),
_ => unified_path.to_slash_lossy(),
};
Some((unified_path_str, Some(lang.to_str().unwrap().into())))
Some((unified_path_str.to_string(), Some(lang.to_str().unwrap().into())))
} else {
// No lang, return no_ext directly
let mut no_ext_string = match no_ext.strip_prefix(base_dir) {
Ok(path_without_prefix) => path_without_prefix.to_slash_lossy(),
_ => no_ext.to_slash_lossy(),
Ok(path_without_prefix) => path_without_prefix.to_slash_lossy().to_string(),
_ => no_ext.to_slash_lossy().to_string(),
};
no_ext_string.push_str(".md");
Some((no_ext_string, None))