diff options
author | HampusM <hampus@hampusmat.com> | 2023-04-02 21:21:34 +0200 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2023-04-02 21:21:34 +0200 |
commit | 4c773728ea4394a65bae65ee6b79e9a30c6931b2 (patch) | |
tree | f4699135227cda8b321aca5d9cd28ac0da90ec26 /src/repeat.rs | |
parent | 1a5cb3448c9575665729ff49ba789ca816bfe3cb (diff) |
chore: use opengl-registry 0.2.0
Diffstat (limited to 'src/repeat.rs')
-rw-r--r-- | src/repeat.rs | 31 |
1 files changed, 17 insertions, 14 deletions
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); |