File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -688,6 +688,7 @@ impl FlashOperation {
688
688
/// Note: If a `Window` goes out of scope but it cloned its context,
689
689
/// then the `SDL_Window` will not be destroyed until there are no more references to the `WindowContext`.
690
690
/// This may happen when a `TextureCreator<Window>` outlives the `Canvas<Window>`
691
+ #[ derive( Clone ) ]
691
692
pub struct Window {
692
693
context : Rc < WindowContext > ,
693
694
}
@@ -1324,7 +1325,7 @@ impl Window {
1324
1325
1325
1326
#[ inline]
1326
1327
/// Create a new `Window` without taking ownership of the `WindowContext`
1327
- pub const unsafe fn from_ref ( context : Rc < WindowContext > ) -> Window {
1328
+ pub const fn from_ref ( context : Rc < WindowContext > ) -> Window {
1328
1329
Window { context }
1329
1330
}
1330
1331
You can’t perform that action at this time.
0 commit comments