From 052a74c45110d5ddad9943ff33c2c3c332b96e0f Mon Sep 17 00:00:00 2001 From: konsti Date: Wed, 16 Jul 2025 15:56:32 +0100 Subject: [PATCH] Fix doctests (#14658) `cargo nextest run` doesn't run them, but `cargo insta test --test-runner nextest` does, which surfaced those failures. --- crates/uv-pep508/src/lib.rs | 2 +- crates/uv-requirements-txt/src/shquote.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/uv-pep508/src/lib.rs b/crates/uv-pep508/src/lib.rs index e2945743b..f63d46206 100644 --- a/crates/uv-pep508/src/lib.rs +++ b/crates/uv-pep508/src/lib.rs @@ -11,7 +11,7 @@ //! let marker = r#"requests [security,tests] >= 2.8.1, == 2.8.* ; python_version > "3.8""#; //! let dependency_specification = Requirement::::from_str(marker).unwrap(); //! assert_eq!(dependency_specification.name.as_ref(), "requests"); -//! assert_eq!(dependency_specification.extras, vec![ExtraName::from_str("security").unwrap(), ExtraName::from_str("tests").unwrap()]); +//! assert_eq!(dependency_specification.extras, vec![ExtraName::from_str("security").unwrap(), ExtraName::from_str("tests").unwrap()].into()); //! ``` #![warn(missing_docs)] diff --git a/crates/uv-requirements-txt/src/shquote.rs b/crates/uv-requirements-txt/src/shquote.rs index d30b4bc5b..180a62496 100644 --- a/crates/uv-requirements-txt/src/shquote.rs +++ b/crates/uv-requirements-txt/src/shquote.rs @@ -146,8 +146,8 @@ fn unquote_open_escape(acc: &mut String, cursor: &mut std::iter::Enumerate Result, UnquoteError> { // If the string does not contain any single-quotes, double-quotes, or escape sequences, it