mirror of
https://github.com/zyllian/zyllian.github.io.git
synced 2025-05-09 18:16:43 -07:00
Switch to stable toolchain
This commit is contained in:
parent
41268039de
commit
e91bbc38c5
5 changed files with 31 additions and 45 deletions
|
@ -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")?;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue