Skip to content

Commit

Permalink
ignore doctests
Browse files Browse the repository at this point in the history
Signed-off-by: Bugen Zhao <[email protected]>
  • Loading branch information
BugenZhao committed Apr 26, 2024
1 parent 27d645e commit fd7f099
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/check-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,6 @@ jobs:
- name: Clippy
run: cargo clippy ${{ matrix.features }} -- -D warnings
- name: Run tests
run: cargo test ${{ matrix.features }}
run: cargo test --workspace ${{ matrix.features }}
- name: Generate docs
run: RUSTDOCFLAGS="-Dwarnings" cargo doc --no-deps
run: RUSTDOCFLAGS="-Dwarnings --cfg docsrs" cargo doc --no-deps
14 changes: 7 additions & 7 deletions derive/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ mod thiserror;
///
/// # Example
///
/// ```no_run
/// ```ignore
/// #[derive(Debug, thiserror::Error, thiserror_ext::Construct)]
/// enum Error {
/// #[error("unsupported feature: {0}")]
Expand Down Expand Up @@ -65,7 +65,7 @@ pub fn derive_construct(input: TokenStream) -> TokenStream {
///
/// # Example
///
/// ```no_run
/// ```ignore
/// #[derive(Debug, thiserror::Error, thiserror_ext::ContextInto)]
/// enum Error {
/// #[error("cannot parse int from `{from}`")]
Expand Down Expand Up @@ -126,7 +126,7 @@ pub fn derive_context_into(input: TokenStream) -> TokenStream {
///
/// ## Example
///
/// ```no_run
/// ```ignore
/// #[derive(Debug, thiserror::Error, thiserror_ext::Macro)]
/// enum Error {
/// #[error("internal error: {msg}")]
Expand All @@ -151,7 +151,7 @@ pub fn derive_context_into(input: TokenStream) -> TokenStream {
///
/// ## Example
///
/// ```no_run
/// ```ignore
/// #[derive(Debug, thiserror::Error, thiserror_ext::Macro)]
/// #[error("not yet implemented: {message}")]
/// struct NotYetImplemented {
Expand Down Expand Up @@ -221,7 +221,7 @@ pub fn derive_macro(input: TokenStream) -> TokenStream {
///
/// ## Example
///
/// ```no_run
/// ```ignore
/// #[derive(Debug, thiserror::Error, thiserror_ext::Box)]
/// #[thiserror_ext(newtype(name = Error))]
/// enum ErrorKind {
Expand Down Expand Up @@ -258,7 +258,7 @@ pub fn derive_macro(input: TokenStream) -> TokenStream {
///
/// ## Example
///
/// ```no_run
/// ```ignore
/// # use std::backtrace::Backtrace;
/// #[derive(Debug, thiserror::Error, thiserror_ext::Box)]
/// #[thiserror_ext(newtype(name = Error, backtrace))]
Expand Down Expand Up @@ -312,7 +312,7 @@ pub fn derive_arc(input: TokenStream) -> TokenStream {
/// chain can be kept in these cases.
///
/// # Example
/// ```no_run
/// ```ignore
/// #[derive(thiserror::Error, thiserror_ext::ReportDebug)]
/// #[error("inner")]
/// struct Inner;
Expand Down
4 changes: 2 additions & 2 deletions src/report.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ pub trait AsReport: crate::error_sealed::Sealed {
/// like under different options.
///
/// # Example
/// ```no_run
/// use thiserror::AsReport;
/// ```ignore
/// use thiserror_ext::AsReport;
///
/// let error = fallible_action().unwrap_err();
/// println!("{}", error.as_report());
Expand Down

0 comments on commit fd7f099

Please sign in to comment.