summaryrefslogtreecommitdiff
path: root/opengl-bindings
diff options
context:
space:
mode:
Diffstat (limited to 'opengl-bindings')
-rw-r--r--opengl-bindings/src/buffer.rs2
-rw-r--r--opengl-bindings/src/misc.rs2
-rw-r--r--opengl-bindings/src/shader.rs2
-rw-r--r--opengl-bindings/src/texture.rs2
-rw-r--r--opengl-bindings/src/vertex_array.rs2
5 files changed, 5 insertions, 5 deletions
diff --git a/opengl-bindings/src/buffer.rs b/opengl-bindings/src/buffer.rs
index 6fb3c2f..edbf2a3 100644
--- a/opengl-bindings/src/buffer.rs
+++ b/opengl-bindings/src/buffer.rs
@@ -171,7 +171,7 @@ impl<Item: ReprC> Buffer<Item>
let Ok(offset_casted) = crate::sys::types::GLintptr::try_from(offset) else {
unreachable!(); // Reason: The total size can be casted to a GLintptr
- // (done above) so offsets should be castable as well
+ // (done above) so offsets should be castable as well
};
unsafe {
diff --git a/opengl-bindings/src/misc.rs b/opengl-bindings/src/misc.rs
index 3a3335d..8d871b1 100644
--- a/opengl-bindings/src/misc.rs
+++ b/opengl-bindings/src/misc.rs
@@ -1,7 +1,7 @@
use bitflags::bitflags;
-use crate::CurrentContextWithFns;
use crate::data_types::{Dimens, Vec2};
+use crate::CurrentContextWithFns;
/// Sets the viewport.
///
diff --git a/opengl-bindings/src/shader.rs b/opengl-bindings/src/shader.rs
index 2808f0f..7eb1ac9 100644
--- a/opengl-bindings/src/shader.rs
+++ b/opengl-bindings/src/shader.rs
@@ -3,8 +3,8 @@ use std::ptr::null_mut;
use safer_ffi::layout::ReprC;
-use crate::CurrentContextWithFns;
use crate::data_types::{Matrix, Vec3};
+use crate::CurrentContextWithFns;
#[derive(Debug)]
pub struct Shader
diff --git a/opengl-bindings/src/texture.rs b/opengl-bindings/src/texture.rs
index c5d43c9..391ae0e 100644
--- a/opengl-bindings/src/texture.rs
+++ b/opengl-bindings/src/texture.rs
@@ -1,5 +1,5 @@
-use crate::CurrentContextWithFns;
use crate::data_types::Dimens;
+use crate::CurrentContextWithFns;
#[derive(Debug)]
pub struct Texture
diff --git a/opengl-bindings/src/vertex_array.rs b/opengl-bindings/src/vertex_array.rs
index 3f4b566..30afde4 100644
--- a/opengl-bindings/src/vertex_array.rs
+++ b/opengl-bindings/src/vertex_array.rs
@@ -2,8 +2,8 @@ use std::ffi::c_void;
use safer_ffi::layout::ReprC;
-use crate::CurrentContextWithFns;
use crate::buffer::Buffer;
+use crate::CurrentContextWithFns;
#[derive(Debug)]
pub struct VertexArray