From 6fd5b76430bff4e7e8fda4d4ebb4b821953e0b6b Mon Sep 17 00:00:00 2001 From: Luke Franceschini Date: Tue, 18 Jun 2024 14:29:29 -0400 Subject: [PATCH] Fix PathStyle::clear_fill() doctest in style.rs (#1791) --- node-graph/gcore/src/vector/style.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/node-graph/gcore/src/vector/style.rs b/node-graph/gcore/src/vector/style.rs index 3107736f..94777893 100644 --- a/node-graph/gcore/src/vector/style.rs +++ b/node-graph/gcore/src/vector/style.rs @@ -698,11 +698,11 @@ impl PathStyle { /// # use graphene_core::raster::color::Color; /// let mut style = PathStyle::new(None, Fill::Solid(Color::RED)); /// - /// assert!(style.fill().is_some()); + /// assert_ne!(*style.fill(), Fill::None); /// /// style.clear_fill(); /// - /// assert!(!style.fill().is_some()); + /// assert_eq!(*style.fill(), Fill::None); /// ``` pub fn clear_fill(&mut self) { self.fill = Fill::None;