Skip to content

Commit cb20257

Browse files
committed
Switch to color-eyre
1 parent 89eecda commit cb20257

6 files changed

Lines changed: 185 additions & 14 deletions

File tree

Cargo.lock

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

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ keywords = ["git"]
1111
exclude = [".gitignore", ".github", "target"]
1212

1313
[dependencies]
14-
anyhow = "1"
14+
color-eyre = "0.6"
1515
const_format = "0.2"
16-
serde = { version = "1", features = ["derive"] }
1716
csv = "1"
17+
serde = { version = "1", features = ["derive"] }
1818
thiserror = "1"
1919

2020
[dependencies.clap]

src/git.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
use anyhow::Result;
1+
use color_eyre::Result;
22
use const_format::concatcp;
33
use csv::ReaderBuilder;
44
use serde::Deserialize;

src/main.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
#![allow(missing_docs)] // TODO: change to warn/deny
22
#![allow(dead_code)] // TODO: remove
33

4-
use anyhow::Result;
54
use clap::{Parser, Subcommand};
65

76
mod git;
@@ -50,7 +49,7 @@ enum Command {
5049
Sync,
5150
}
5251

53-
fn main() -> Result<()> {
52+
fn main() -> color_eyre::Result<()> {
5453
let root = Root::parse();
5554
let runner = runner::Runner::new("git")?;
5655
let stc = stc::Stc::new(runner);

src/runner.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
use crate::git;
2-
use anyhow::Result;
2+
use color_eyre::Result;
33
use std::{
44
collections::HashMap,
55
path::PathBuf,

src/stc.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
use crate::git;
2-
use anyhow::Result;
2+
use color_eyre::Result;
33
use std::write;
44
use thiserror::Error;
55

0 commit comments

Comments
 (0)