Skip to content

Commit bf7dbfe

Browse files
committed
Update pinned rustc version
1 parent 342569a commit bf7dbfe

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Diff for: azure-pipelines.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ stages:
2121
rustup_toolchain: stable
2222
linux-pinned:
2323
imageName: 'ubuntu-20.04'
24-
rustup_toolchain: 1.56.0
24+
rustup_toolchain: 1.57.0
2525
pool:
2626
vmImage: $(imageName)
2727
steps:

Diff for: components/site/tests/common.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -99,12 +99,12 @@ fn find_lang_for(entry: &Path, base_dir: &Path) -> Option<(String, Option<String
9999
Ok(path_without_prefix) => path_without_prefix.to_slash_lossy(),
100100
_ => unified_path.to_slash_lossy(),
101101
};
102-
Some((unified_path_str, Some(lang.to_str().unwrap().into())))
102+
Some((unified_path_str.to_string(), Some(lang.to_str().unwrap().into())))
103103
} else {
104104
// No lang, return no_ext directly
105105
let mut no_ext_string = match no_ext.strip_prefix(base_dir) {
106-
Ok(path_without_prefix) => path_without_prefix.to_slash_lossy(),
107-
_ => no_ext.to_slash_lossy(),
106+
Ok(path_without_prefix) => path_without_prefix.to_slash_lossy().to_string(),
107+
_ => no_ext.to_slash_lossy().to_string(),
108108
};
109109
no_ext_string.push_str(".md");
110110
Some((no_ext_string, None))

0 commit comments

Comments
 (0)