From e3136b8b57687bf1aadc7bf3253b8be3ad3ea5b2 Mon Sep 17 00:00:00 2001 From: Antoni Spaanderman <56turtle56@gmail.com> Date: Fri, 12 Jul 2024 20:42:34 +0200 Subject: [PATCH] remove println from deprecated SwapInterval::from --- src/sdl2/video.rs | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/sdl2/video.rs b/src/sdl2/video.rs index ca38d4b11e..f90659b170 100644 --- a/src/sdl2/video.rs +++ b/src/sdl2/video.rs @@ -622,10 +622,6 @@ impl Error for SwapIntervalConversionError {} impl From for SwapInterval { /// This function is deprecated, use [`SwapInterval::try_from`] instead and handle the error. fn from(i: i32) -> Self { - println!( - "SwapInterval::from is deprecated (could be called from .into()), \ - use SwapInterval::try_from instead and handle the error" - ); Self::try_from(i).unwrap() } }