Skip to content

Commit

Permalink
Replace failure with anyhow
Browse files Browse the repository at this point in the history
  • Loading branch information
Aloxaf committed Sep 21, 2020
1 parent c410715 commit b2a5822
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 82 deletions.
83 changes: 7 additions & 76 deletions Cargo.lock

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

6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ version = "4.4"
default-features = false
features = ["parsing", "dump-load", "regex-onig"]

[dependencies.failure]
version = "0.1.8"
[dependencies.anyhow]
version = "1.0"
optional = true

[dependencies.structopt]
Expand All @@ -61,4 +61,4 @@ optional = true

[features]
default = ["bin"]
bin = ["structopt", "env_logger", "failure"]
bin = ["structopt", "env_logger", "anyhow"]
4 changes: 2 additions & 2 deletions src/bin.rs
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
#[macro_use]
extern crate log;
#[macro_use]
extern crate failure;
extern crate anyhow;

use crate::config::Config;
use crate::utils::*;
use failure::Error;
use anyhow::Error;
use image::DynamicImage;
use structopt::StructOpt;
use syntect::easy::HighlightLines;
Expand Down
2 changes: 1 addition & 1 deletion src/config.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use crate::formatter::{ImageFormatter, ImageFormatterBuilder};
use crate::utils::{ShadowAdder, ToRgba};
use clipboard::{ClipboardContext, ClipboardProvider};
use failure::Error;
use anyhow::Error;
use image::Rgba;
use std::fs::File;
use std::io::{stdin, Read};
Expand Down

0 comments on commit b2a5822

Please sign in to comment.