aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.rs
diff options
context:
space:
mode:
authorTeddy Wing2021-05-30 16:06:41 +0200
committerTeddy Wing2021-05-30 16:06:41 +0200
commitd071c5e456367ed0cc4f907e9e5c7dc46c331399 (patch)
tree9e8d72f87baf39f59d9e148da99b07f1cda84973 /src/main.rs
parent7d61e57aa6a7f3e61eb4ceac2b6fd7104245c3fe (diff)
downloadreflectub-d071c5e456367ed0cc4f907e9e5c7dc46c331399.tar.bz2
Replace boxed errors with concrete error types
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs
index 162c743..ffda552 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -1,3 +1,4 @@
+use anyhow;
use sqlx;
use tokio;
@@ -80,7 +81,7 @@ async fn main() {
}
-fn mirror(repo: &github::Repo) -> Result<(), Box<dyn std::error::Error>> {
+fn mirror(repo: &github::Repo) -> anyhow::Result<()> {
// mirror database
// update description
// copy cgitrc