diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 4b7cb3917a..7183c2907e 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.60.0 + rustup_toolchain: 1.61.0 pool: vmImage: $(imageName) steps: diff --git a/components/site/src/minify.rs b/components/site/src/minify.rs index 8dc3346b2a..8f3862b902 100644 --- a/components/site/src/minify.rs +++ b/components/site/src/minify.rs @@ -1,8 +1,6 @@ use errors::{bail, Result}; use libs::minify_html::{minify, Cfg}; -// TODO: move to site - pub fn html(html: String) -> Result { let mut cfg = Cfg::spec_compliant(); cfg.keep_html_and_head_opening_tags = true; diff --git a/components/site/src/sass.rs b/components/site/src/sass.rs index 1d82a84c41..87f5c7dd8c 100644 --- a/components/site/src/sass.rs +++ b/components/site/src/sass.rs @@ -9,7 +9,6 @@ use crate::anyhow; use errors::{bail, Result}; use utils::fs::{create_file, ensure_directory_exists}; - pub fn compile_sass(base_path: &Path, output_path: &Path) -> Result<()> { ensure_directory_exists(output_path)?; @@ -77,7 +76,8 @@ mod tests { fn test_get_non_partial_scss() { use std::env; - let mut path = env::current_dir().unwrap().parent().unwrap().parent().unwrap().to_path_buf(); + let mut path = + env::current_dir().unwrap().parent().unwrap().parent().unwrap().to_path_buf(); path.push("test_site"); path.push("sass"); @@ -91,7 +91,8 @@ mod tests { fn test_get_non_partial_scss_underscores() { use std::env; - let mut path = env::current_dir().unwrap().parent().unwrap().parent().unwrap().to_path_buf(); + let mut path = + env::current_dir().unwrap().parent().unwrap().parent().unwrap().to_path_buf(); path.push("test_site"); path.push("_dir_with_underscores"); path.push("..");