From 448045d03e3435755687bcdc628e985cc0dca72c Mon Sep 17 00:00:00 2001 From: Tobias Bieniek Date: Sun, 2 Feb 2025 18:08:43 +0100 Subject: [PATCH] iced_test: Add `Snapshot::into_inner()` fn --- test/src/lib.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/src/lib.rs b/test/src/lib.rs index 73726f0808..03626a24c6 100644 --- a/test/src/lib.rs +++ b/test/src/lib.rs @@ -539,6 +539,11 @@ impl Snapshot { Ok(true) } } + + /// Returns the inner [`window::Screenshot`] of the [`Snapshot`]. + pub fn into_inner(self) -> window::Screenshot { + self.screenshot + } } /// Returns the sequence of events of a click.