mirror of
https://github.com/zyllian/webdog.git
synced 2025-05-10 02:26:42 -07:00
replace anyhow with eyre
This commit is contained in:
parent
00b5567769
commit
27bd18beea
12 changed files with 172 additions and 77 deletions
|
@ -11,7 +11,10 @@ enum Mode {
|
|||
|
||||
#[cfg(feature = "serve")]
|
||||
#[tokio::main]
|
||||
async fn main() -> anyhow::Result<()> {
|
||||
async fn main() -> eyre::Result<()> {
|
||||
#[cfg(feature = "color-eyre")]
|
||||
color_eyre::install()?;
|
||||
|
||||
let site = Site::new(&Path::new("site").canonicalize()?)?;
|
||||
|
||||
let mut mode = Mode::Build;
|
||||
|
@ -33,7 +36,7 @@ async fn main() -> anyhow::Result<()> {
|
|||
}
|
||||
|
||||
#[cfg(not(feature = "serve"))]
|
||||
fn main() -> anyhow::Result<()> {
|
||||
fn main() -> eyre::Result<()> {
|
||||
let site = Site::new(&Path::new("site").canonicalize()?)?;
|
||||
site.build_once()?;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue