Skip to content

Commit

Permalink
Update pinned rustc version
Browse files Browse the repository at this point in the history
  • Loading branch information
Keats committed Jul 10, 2022
1 parent 342569a commit bf7dbfe
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
6 changes: 3 additions & 3 deletions components/site/tests/common.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit bf7dbfe

Please sign in to comment.