diff --git a/src/compose/mod.rs b/src/compose/mod.rs index 96692ff..19fb4c9 100644 --- a/src/compose/mod.rs +++ b/src/compose/mod.rs @@ -306,7 +306,7 @@ pub struct ImportDefinition { #[derive(Debug, Clone)] pub struct ImportDefWithOffset { - definition: ImportDefinition, + pub definition: ImportDefinition, offset: usize, } diff --git a/src/compose/preprocess.rs b/src/compose/preprocess.rs index bd206bd..ea5d236 100644 --- a/src/compose/preprocess.rs +++ b/src/compose/preprocess.rs @@ -243,9 +243,7 @@ impl Preprocessor { // this code broadly stolen from bevy_render::ShaderProcessor let mut lines = shader_str.lines(); - let mut lines = lines //.replace_comments() - .zip(shader_str.lines()) - .peekable(); + let mut lines = lines.replace_comments().zip(shader_str.lines()).peekable(); while let Some((mut line, original_line)) = lines.next() { let mut output = false;