Skip to content

Commit

Permalink
Prepare for release: fix nix builds
Browse files Browse the repository at this point in the history
  • Loading branch information
lf- committed Jul 4, 2021
1 parent fe86aca commit 35c3379
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 3 deletions.
23 changes: 23 additions & 0 deletions Cargo.lock

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

2 changes: 1 addition & 1 deletion default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ pkgs.rustPlatform.buildRustPackage {
pname = "nix-doc";
version = "0.5.0";

cargoSha256 = "0jkn1rqiwjb8yr66h7mija5gkswvb379cc1wp6gq5dbb29ggxbj2";
cargoSha256 = "0xmw3fyic0fcg7a6z8dr3lv367bxqdhdrlrl2hhlz59xg5kq8b3f";

src = gitignoreSource ./.;

Expand Down
5 changes: 3 additions & 2 deletions nix-doc/src/tags.rs
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,8 @@ mod tests {
use super::*;
use expect_test::{expect, Expect};

fn check(dir: PathBuf, expected: Expect) {
fn check(dir: &str, expected: Expect) {
let dir = PathBuf::from(dir);
let curdir = current_dir().unwrap();

println!("datadir: {}", &dir.display());
Expand All @@ -378,7 +379,7 @@ mod tests {
#[test]
fn smoke() {
check(
PathBuf::from("testdata"),
"testdata",
expect![[r#"
!_TAG_FILE_FORMAT 2 /extended format/
!_TAG_FILE_SORTED 1 /0=unsorted, 1=sorted, 2=foldcase/
Expand Down

0 comments on commit 35c3379

Please sign in to comment.