diff options
| author | Ayose <ayosec@gmail.com> | 2025-07-23 00:00:00 +0000 |
|---|---|---|
| committer | Ayose <ayosec@gmail.com> | 2025-07-23 00:00:00 +0000 |
| commit | 4f83bcb58e5e5e260da4785069fa6e322fc06136 (patch) | |
| tree | e89678ef565560367369b2603e9b3187c064e908 /alacritty/src | |
| parent | a247c96e9f59ee73908ace776dde3812557c8b83 (diff) | |
| download | r-alacritty-4f83bcb58e5e5e260da4785069fa6e322fc06136.tar.gz r-alacritty-4f83bcb58e5e5e260da4785069fa6e322fc06136.tar.bz2 r-alacritty-4f83bcb58e5e5e260da4785069fa6e322fc06136.zip | |
Remove memoffset crate.
Since Rust 1.77, `offset_of` is available in the std.
Diffstat (limited to 'alacritty/src')
| -rw-r--r-- | alacritty/src/renderer/graphics/shader.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/alacritty/src/renderer/graphics/shader.rs b/alacritty/src/renderer/graphics/shader.rs index 650af0a5..d203f8be 100644 --- a/alacritty/src/renderer/graphics/shader.rs +++ b/alacritty/src/renderer/graphics/shader.rs @@ -149,7 +149,7 @@ fn define_vertex_attributes(shader_version: ShaderVersion) -> (GLuint, GLuint) { 1, gl::$type, mem::size_of::<Vertex>() as i32, - memoffset::offset_of!(Vertex, $field) as *const _, + mem::offset_of!(Vertex, $field) as *const _, ); attr_index += 1; @@ -164,7 +164,7 @@ fn define_vertex_attributes(shader_version: ShaderVersion) -> (GLuint, GLuint) { gl::$type, gl::FALSE, mem::size_of::<Vertex>() as i32, - memoffset::offset_of!(Vertex, $field) as *const _, + mem::offset_of!(Vertex, $field) as *const _, ); attr_index += 1; |