Switch to stable toolchain

This commit is contained in:
Zoey 2021-08-19 13:59:00 -07:00
parent 41268039de
commit e91bbc38c5
5 changed files with 31 additions and 45 deletions

View file

@ -57,9 +57,7 @@ impl<'a> SiteBuilder<'a> {
/// Prepares the site builder for use.
pub fn prepare(mut self) -> anyhow::Result<Self> {
let build_static_path = self.build_path.join(STATIC_PATH);
if std::fs::try_exists(&self.build_path)
.context("Failed check if build directory exists")?
{
if self.build_path.exists() {
if build_static_path.exists() {
std::fs::remove_dir_all(&build_static_path)
.context("Failed to remove old static directory")?;