diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 5b1053b9e5..e8b08d0a0e 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -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: diff --git a/components/site/tests/common.rs b/components/site/tests/common.rs index a90ae085a2..f5caaf1824 100644 --- a/components/site/tests/common.rs +++ b/components/site/tests/common.rs @@ -99,12 +99,12 @@ fn find_lang_for(entry: &Path, base_dir: &Path) -> Option<(String, Option 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))