Skip to content

Commit efa9f57

Browse files
committed
Add anyhow
1 parent b3aef37 commit efa9f57

File tree

3 files changed

+12
-1
lines changed

3 files changed

+12
-1
lines changed

Cargo.lock

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ authors = [
99
edition = "2021"
1010

1111
[dependencies]
12+
anyhow = "1.0.81"
1213
clap = { version = "4.5.2", features = ["derive"] }
1314
console = "0.15.8"
1415
glob = "0.3.0"

src/main.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ use crate::exercise::{Exercise, ExerciseList};
22
use crate::project::RustAnalyzerProject;
33
use crate::run::{reset, run};
44
use crate::verify::verify;
5+
use anyhow::Result;
56
use clap::{Parser, Subcommand};
67
use console::Emoji;
78
use notify_debouncer_mini::notify::{self, RecursiveMode};
@@ -84,7 +85,7 @@ enum Subcommands {
8485
Lsp,
8586
}
8687

87-
fn main() {
88+
fn main() -> Result<()> {
8889
let args = Args::parse();
8990

9091
if args.command.is_none() {
@@ -243,6 +244,8 @@ fn main() {
243244
}
244245
},
245246
}
247+
248+
Ok(())
246249
}
247250

248251
fn spawn_watch_shell(

0 commit comments

Comments
 (0)