Skip to content

Commit

Permalink
fix: default is to use color-eyre
Browse files Browse the repository at this point in the history
  • Loading branch information
kristof-mattei committed Jun 24, 2023
1 parent e92d8c0 commit 9ec7951
Show file tree
Hide file tree
Showing 3 changed files with 225 additions and 1 deletion.
221 changes: 221 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ repository = "https://github.com/kristof-mattei/rust-end-to-end-application"
coverage = []

[dependencies]
color-eyre = "0.6.2"
# reqwest = { version = "0.11.5", features = ["json"] }
# serde_json = "1.0.68"
# serde = { version = "1.0.130", features = ["derive"] }
Expand Down
4 changes: 3 additions & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,9 @@ fn quz() -> &'static str {
// run_app().await;
// }

fn main() {
fn main() -> Result<(), color_eyre::Report> {
color_eyre::install()?;

println!("{}", foo());
println!("{}", bar());
println!("{}", quz());
Expand Down

0 comments on commit 9ec7951

Please sign in to comment.