Skip to content

Commit

Permalink
Fmt + change min version
Browse files Browse the repository at this point in the history
  • Loading branch information
Keats committed Feb 16, 2023
1 parent fcbb21a commit e12b766
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 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.60.0
rustup_toolchain: 1.61.0
pool:
vmImage: $(imageName)
steps:
Expand Down
2 changes: 0 additions & 2 deletions components/site/src/minify.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
use errors::{bail, Result};
use libs::minify_html::{minify, Cfg};

// TODO: move to site

pub fn html(html: String) -> Result<String> {
let mut cfg = Cfg::spec_compliant();
cfg.keep_html_and_head_opening_tags = true;
Expand Down
7 changes: 4 additions & 3 deletions components/site/src/sass.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)?;

Expand Down Expand Up @@ -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");

Expand All @@ -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("..");
Expand Down

0 comments on commit e12b766

Please sign in to comment.