summaryrefslogtreecommitdiffstats
path: root/graphics/src/window/gl_compositor.rs
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón <hector0193@gmail.com>2022-07-09 19:03:40 +0200
committerLibravatar GitHub <noreply@github.com>2022-07-09 19:03:40 +0200
commit9051dd6977d045f991092e247e6bd9da40d2e793 (patch)
treecde7d983ffc085ed908be776e9021a8e41b44b44 /graphics/src/window/gl_compositor.rs
parentc4c1221be62f51dd9f1d20ea2c4ea6e2c94e20aa (diff)
parente548d6c0d5b430b090821e673dc453a24c885fbe (diff)
downloadiced-9051dd6977d045f991092e247e6bd9da40d2e793.tar.gz
iced-9051dd6977d045f991092e247e6bd9da40d2e793.tar.bz2
iced-9051dd6977d045f991092e247e6bd9da40d2e793.zip
Merge pull request #1379 from PolyMeilex/fix/clippy
Address Clippy lints
Diffstat (limited to 'graphics/src/window/gl_compositor.rs')
-rw-r--r--graphics/src/window/gl_compositor.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/graphics/src/window/gl_compositor.rs b/graphics/src/window/gl_compositor.rs
index 4ff17366..722e4d9c 100644
--- a/graphics/src/window/gl_compositor.rs
+++ b/graphics/src/window/gl_compositor.rs
@@ -35,6 +35,9 @@ pub trait GLCompositor: Sized {
/// Creates a new [`GLCompositor`] and [`Renderer`] with the given
/// [`Settings`] and an OpenGL address loader function.
///
+ /// # Safety
+ /// The `loader_function` should resolve to valid OpenGL bindings.
+ ///
/// [`Renderer`]: crate::Renderer
/// [`Backend`]: crate::Backend
/// [`Settings`]: Self::Settings