From ae20ea6c6e5f584e3064ebe38012d2154fbd426d Mon Sep 17 00:00:00 2001 From: NiiightmareXD Date: Tue, 31 Oct 2023 06:57:00 -0700 Subject: [PATCH] =?UTF-8?q?Optimization=20=F0=9F=92=A5=20=09modified:=20?= =?UTF-8?q?=20=20Cargo.lock=20=09modified:=20=20=20Cargo.toml=20=09modifie?= =?UTF-8?q?d:=20=20=20README.md=20=09modified:=20=20=20src/lib.rs?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Cargo.lock | 2 +- Cargo.toml | 2 +- README.md | 4 ++-- src/lib.rs | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index f86cd37..e225985 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -457,7 +457,7 @@ dependencies = [ [[package]] name = "windows-capture" -version = "1.0.21" +version = "1.0.22" dependencies = [ "image", "log", diff --git a/Cargo.toml b/Cargo.toml index b9f62f6..fac95df 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "windows-capture" -version = "1.0.21" +version = "1.0.22" authors = ["NiiightmareXD"] edition = "2021" description = "Simple Windows Screen Capture Library For Rust And Python 🔥" diff --git a/README.md b/README.md index c5dcc1b..eeacd9d 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,7 @@ Add this library to your `Cargo.toml`: ```toml [dependencies] -windows-capture = "1.0.21" +windows-capture = "1.0.22" ``` or run this command @@ -44,7 +44,7 @@ impl WindowsCaptureHandler for Capture { Self {} } - fn on_frame_arrived(&mut self, frame: Frame) { + fn on_frame_arrived(&mut self, mut frame: Frame) { // Called Every Time A New Frame Is Available println!("Got A New Frame"); diff --git a/src/lib.rs b/src/lib.rs index 5c7067f..a89300c 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -22,7 +22,7 @@ //! //! ```toml //! [dependencies] -//! windows-capture = "1.0.21" +//! windows-capture = "1.0.22" //! ``` //! or run this command //! @@ -51,7 +51,7 @@ //! Self {} //! } //! -//! fn on_frame_arrived(&mut self, frame: Frame) { +//! fn on_frame_arrived(&mut self, mut frame: Frame) { //! // Called Every Time A New Frame Is Available //! println!("Got A New Frame"); //!