mitsuhiko/sha1-smol

doctest is failing

ignatenkobrain opened this issue · 1 comments

   Doc-tests sha1
     Running `/usr/bin/rustdoc --test /builddir/build/BUILD/sha1-0.6.0/src/lib.rs --crate-name sha1 -L dependency=/builddir/build/BUILD/sha1-0.6.0/target/release/deps -L dependency=/builddir/build/BUILD/sha1-0.6.0/target/release/deps --extern rand=/builddir/build/BUILD/sha1-0.6.0/target/release/deps/librand-9c9dadd4ba24c308.rlib --extern openssl=/builddir/build/BUILD/sha1-0.6.0/target/release/deps/libopenssl-6242327a64054467.rlib --extern serde_json=/builddir/build/BUILD/sha1-0.6.0/target/release/deps/libserde_json-a4231af3ff68273f.rlib --extern sha1=/builddir/build/BUILD/sha1-0.6.0/target/release/deps/libsha1-bc4aecf9e78559a2.rlib`
running 2 tests
test src/lib.rs -  (line 26) ... FAILED
test src/lib.rs -  (line 12) ... ok
failures:
---- src/lib.rs -  (line 26) stdout ----
	error[E0599]: no method named `hexdigest` found for type `sha1::Sha1` in the current scope
 --> src/lib.rs:29:45
  |
4 | assert_eq!(sha1::Sha1::from("Hello World!").hexdigest(),
  |                                             ^^^^^^^^^
  |
  = help: did you mean `digest`?
thread 'rustc' panicked at 'couldn't compile the test', librustdoc/test.rs:298:13
note: Run with `RUST_BACKTRACE=1` for a backtrace.
failures:
    src/lib.rs -  (line 26)
test result: FAILED. 1 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out

I also noticed that the example on the docs that uses "hexdigest()" does not compile.