@@ -5,12 +5,12 @@ use baseview::{
55use std:: num:: NonZeroU32 ;
66
77struct ParentWindowHandler {
8- ctx : softbuffer:: Context ,
8+ _ctx : softbuffer:: Context ,
99 surface : softbuffer:: Surface ,
1010 current_size : PhySize ,
1111 damaged : bool ,
1212
13- child_window : Option < WindowHandle > ,
13+ _child_window : Option < WindowHandle > ,
1414}
1515
1616impl ParentWindowHandler {
@@ -33,11 +33,11 @@ impl ParentWindowHandler {
3333
3434 // TODO: no way to query physical size initially?
3535 Self {
36- ctx,
36+ _ctx : ctx,
3737 surface,
3838 current_size : PhySize :: new ( 512 , 512 ) ,
3939 damaged : true ,
40- child_window : Some ( child_window) ,
40+ _child_window : Some ( child_window) ,
4141 }
4242 }
4343}
@@ -76,7 +76,7 @@ impl WindowHandler for ParentWindowHandler {
7676}
7777
7878struct ChildWindowHandler {
79- ctx : softbuffer:: Context ,
79+ _ctx : softbuffer:: Context ,
8080 surface : softbuffer:: Surface ,
8181 current_size : PhySize ,
8282 damaged : bool ,
@@ -89,7 +89,7 @@ impl ChildWindowHandler {
8989 surface. resize ( NonZeroU32 :: new ( 512 ) . unwrap ( ) , NonZeroU32 :: new ( 512 ) . unwrap ( ) ) . unwrap ( ) ;
9090
9191 // TODO: no way to query physical size initially?
92- Self { ctx, surface, current_size : PhySize :: new ( 256 , 256 ) , damaged : true }
92+ Self { _ctx : ctx, surface, current_size : PhySize :: new ( 256 , 256 ) , damaged : true }
9393 }
9494}
9595
0 commit comments