mirror of
https://github.com/getzola/zola
synced 2024-11-10 06:14:19 +00:00
Update pinned rustc version
This commit is contained in:
parent
342569a92a
commit
bf7dbfeaae
2 changed files with 4 additions and 4 deletions
|
@ -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:
|
||||
|
|
|
@ -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))
|
||||
|
|
Loading…
Reference in a new issue