@@ -10,10 +10,11 @@ use std::pin::Pin;
1010use std:: rc:: { Rc , Weak } ;
1111
1212use i_slint_common:: sharedfontique;
13+ use i_slint_core:: Brush ;
1314use i_slint_core:: api:: { RenderingNotifier , RenderingState , SetRenderingNotifierError } ;
1415use i_slint_core:: graphics:: SharedPixelBuffer ;
15- use i_slint_core:: graphics:: { euclid, rendering_metrics_collector:: RenderingMetricsCollector } ;
1616use i_slint_core:: graphics:: { BorderRadius , Rgba8Pixel } ;
17+ use i_slint_core:: graphics:: { euclid, rendering_metrics_collector:: RenderingMetricsCollector } ;
1718use i_slint_core:: item_rendering:: ItemRenderer ;
1819use i_slint_core:: item_tree:: ItemTreeWeak ;
1920use i_slint_core:: items:: { ItemRc , TextWrap } ;
@@ -22,7 +23,6 @@ use i_slint_core::platform::PlatformError;
2223use i_slint_core:: renderer:: RendererSealed ;
2324use i_slint_core:: textlayout:: sharedparley;
2425use i_slint_core:: window:: { WindowAdapter , WindowInner } ;
25- use i_slint_core:: Brush ;
2626use images:: TextureImporter ;
2727
2828type PhysicalLength = euclid:: Length < f32 , PhysicalPx > ;
@@ -491,7 +491,9 @@ impl<B: GraphicsBackend> FemtoVGRendererExt for FemtoVGRenderer<B> {
491491
492492 if let Some ( canvas) = self . canvas . borrow_mut ( ) . take ( ) {
493493 if Rc :: strong_count ( & canvas) != 1 {
494- i_slint_core:: debug_log!( "internal warning: there are canvas references left when destroying the window. OpenGL resources will be leaked." )
494+ i_slint_core:: debug_log!(
495+ "internal warning: there are canvas references left when destroying the window. OpenGL resources will be leaked."
496+ )
495497 }
496498 }
497499
0 commit comments