From aa31c96821a9387f8d7a71d31f0b23239593496d Mon Sep 17 00:00:00 2001 From: Steve Myers Date: Mon, 4 Jan 2021 16:20:47 -0800 Subject: [PATCH] [ci] Fail 'Build docs' job if warnings --- .github/workflows/nightly_docs.yml | 2 +- src/keys/mod.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/nightly_docs.yml b/.github/workflows/nightly_docs.yml index dd8155cf..d88593fa 100644 --- a/.github/workflows/nightly_docs.yml +++ b/.github/workflows/nightly_docs.yml @@ -27,7 +27,7 @@ jobs: uses: actions-rs/cargo@v1 with: command: rustdoc - args: --verbose --features=compiler,electrum,esplora,compact_filters,key-value-db,all-keys -- --cfg docsrs + args: --verbose --features=compiler,electrum,esplora,compact_filters,key-value-db,all-keys -- --cfg docsrs -Dwarnings - name: Upload artifact uses: actions/upload-artifact@v2 with: diff --git a/src/keys/mod.rs b/src/keys/mod.rs index 25c8e03b..7a7fb7f0 100644 --- a/src/keys/mod.rs +++ b/src/keys/mod.rs @@ -420,7 +420,7 @@ where /// [`ToDescriptorKey`]: the generated keys can be directly used in descriptors if `Self` is also /// [`ToDescriptorKey`]. pub trait GeneratableKey: Sized { - /// Type specifying the amount of entropy required e.g. [u8;32] + /// Type specifying the amount of entropy required e.g. `[u8;32]` type Entropy: AsMut<[u8]> + Default; /// Extra options required by the `generate_with_entropy`