Skip to content

Commit

Permalink
Merge pull request #57 from nix-community/remove-failure
Browse files Browse the repository at this point in the history
remove deprecated `failure` crate
  • Loading branch information
asymmetric authored Jul 10, 2023
2 parents b2674c3 + a7c90ef commit da3dc96
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 82 deletions.
78 changes: 1 addition & 77 deletions Cargo.lock

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

1 change: 0 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ authors = ["Vincent Ambo <mail@tazj.in>", "asymmetric"]

[dependencies]
structopt = "0.2"
failure = "0.1"
rnix = "0.11"
rowan = "0.15.11"
serde = { version = "1.0", features = ["derive"] }
Expand Down
5 changes: 2 additions & 3 deletions src/commonmark.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,9 @@
//! This module implements CommonMark output for a struct
//! representing a single entry in the manual.
use failure::Error;
use std::collections::HashMap;

use std::io::Write;
use std::io::{Result, Write};

/// Represent a single function argument name and its (optional)
/// doc-string.
Expand Down Expand Up @@ -102,7 +101,7 @@ impl ManualEntry {
self,
locs: &HashMap<String, String>,
writer: &mut W,
) -> Result<(), Error> {
) -> Result<()> {
let title = format!("lib.{}.{}", self.category, self.name);
let ident = format!(
"lib.{}.{}",
Expand Down
1 change: 0 additions & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
//! * extract line number & add it to generated output
//! * figure out how to specify examples (& leading whitespace?!)
extern crate failure;
extern crate rnix;
extern crate rowan;
extern crate structopt;
Expand Down

0 comments on commit da3dc96

Please sign in to comment.