Skip to content

Commit

Permalink
tests: Small refactor of doc tests (#396)
Browse files Browse the repository at this point in the history
Move use NamedSource a bit up, since now it looks like it is not
imported.

Co-authored-by: Marat Fattakhov <[email protected]>
  • Loading branch information
MFattakhov and Marat Fattakhov authored Nov 27, 2024
1 parent 01564e0 commit 68d47fa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@
//!
//! `thiserror` is a great way to define them, and plays nicely with `miette`!
//! */
//! use miette::{Diagnostic, SourceSpan};
//! use miette::{Diagnostic, NamedSource, SourceSpan};
//! use thiserror::Error;
//!
//! #[derive(Error, Debug, Diagnostic)]
Expand All @@ -127,7 +127,7 @@
//! throughout your app (but NOT your libraries! Those should always return
//! concrete types!).
//! */
//! use miette::{NamedSource, Result};
//! use miette::Result;
//! fn this_fails() -> Result<()> {
//! // You can use plain strings as a `Source`, or anything that implements
//! // the one-method `Source` trait.
Expand Down

0 comments on commit 68d47fa

Please sign in to comment.