chore: 全盘使用 anyhow::Result

This commit is contained in:
amtoaer
2024-04-01 21:53:11 +08:00
parent 45708e91e8
commit d72551254f
12 changed files with 33 additions and 37 deletions

View File

@@ -1,6 +1,7 @@
use std::collections::HashSet;
use std::path::Path;
use anyhow::Result;
use entity::*;
use filenamify::filenamify;
use migration::OnConflict;
@@ -17,7 +18,6 @@ use tokio::io::AsyncWriteExt;
use super::status::Status;
use crate::bilibili::{FavoriteListInfo, PageInfo, VideoInfo};
use crate::config::CONFIG;
use crate::Result;
pub static TEMPLATE: Lazy<handlebars::Handlebars> = Lazy::new(|| {
let mut handlebars = handlebars::Handlebars::new();