From 4c773728ea4394a65bae65ee6b79e9a30c6931b2 Mon Sep 17 00:00:00 2001 From: HampusM Date: Sun, 2 Apr 2023 21:21:34 +0200 Subject: chore: use opengl-registry 0.2.0 --- Cargo.toml | 2 +- src/repeat.rs | 31 +++++++++++++++++-------------- 2 files changed, 18 insertions(+), 15 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index a29976d..838a260 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -13,7 +13,7 @@ proc-macro = true once_cell = "1.17.0" proc-macro2 = "1.0.51" convert_case = "0.6.0" -opengl-registry = "0.1.0" +opengl-registry = "0.2.0" regex = "1.7.1" [dev-dependencies] diff --git a/src/repeat.rs b/src/repeat.rs index 594d23e..8191500 100644 --- a/src/repeat.rs +++ b/src/repeat.rs @@ -147,20 +147,23 @@ mod tests #[test] fn for_each_opengl_command_impl_works() { - let registry = Registry::new(vec![ - Command::new(Prototype::new("glBindBuffer", "void"), vec![]), - Command::new( - Prototype::new("glActiveTexture", "void"), - vec![ - Parameter::new("abc", "GLuint"), - Parameter::new("xyz", "GLshort"), - ], - ), - Command::new( - Prototype::new("glDrawArrays", "GLint"), - vec![Parameter::new("foo", "GLubyte")], - ), - ]); + let registry = Registry::new( + vec![ + Command::new(Prototype::new("glBindBuffer", "void"), vec![]), + Command::new( + Prototype::new("glActiveTexture", "void"), + vec![ + Parameter::new("abc", "GLuint"), + Parameter::new("xyz", "GLshort"), + ], + ), + Command::new( + Prototype::new("glDrawArrays", "GLint"), + vec![Parameter::new("foo", "GLubyte")], + ), + ], + [], + ); let ht = Punct::new('#', Spacing::Alone); -- cgit v1.2.3-18-g5258