Skip to content

Commit

Permalink
vello_shaders: Rename use of gen (#599)
Browse files Browse the repository at this point in the history
This becomes a reserved word in the 2024 edition.
  • Loading branch information
waywardmonkeys authored Jun 6, 2024
1 parent 230a27e commit a51a46d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion vello_shaders/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ fn write_shaders(
buf: &mut String,
shaders: &[(String, ShaderInfo)],
) -> Result<(), std::fmt::Error> {
writeln!(buf, "mod gen {{")?;
writeln!(buf, "mod generated {{")?;
writeln!(buf, " use super::*;")?;
writeln!(buf, " use BindType::*;")?;
writeln!(buf, " pub const SHADERS: Shaders<'static> = Shaders {{")?;
Expand Down
2 changes: 1 addition & 1 deletion vello_shaders/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -125,4 +125,4 @@ pub trait PipelineHost {

include!(concat!(env!("OUT_DIR"), "/shaders.rs"));

pub use gen::SHADERS;
pub use generated::SHADERS;

0 comments on commit a51a46d

Please sign in to comment.