From 454245e1bddda22a0ea59dc538bbaf2b3f3ac51d Mon Sep 17 00:00:00 2001 From: Jacob Lifshay Date: Tue, 30 Oct 2018 17:43:30 -0700 Subject: [PATCH] fix missing try (?) operators on result of writeln --- spirv-parser-generator/src/generate.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/spirv-parser-generator/src/generate.rs b/spirv-parser-generator/src/generate.rs index b790d84..bd23484 100644 --- a/spirv-parser-generator/src/generate.rs +++ b/spirv-parser-generator/src/generate.rs @@ -186,9 +186,9 @@ pub(crate) fn generate( assert_eq!(line.find('\r'), None); assert_eq!(line.find('\n'), None); if line == "" { - writeln!(&mut out, "//"); + writeln!(&mut out, "//")?; } else { - writeln!(&mut out, "// {}", line); + writeln!(&mut out, "// {}", line)?; } } } @@ -1360,7 +1360,7 @@ pub(crate) fn generate( Other(String), } } - ); + )?; writeln!( &mut out, "{}", @@ -1375,7 +1375,7 @@ pub(crate) fn generate( } } } - ); + )?; writeln!( &mut out, "{}", @@ -1390,7 +1390,7 @@ pub(crate) fn generate( } } } - ); + )?; writeln!( &mut out, "{}", @@ -1429,7 +1429,7 @@ pub(crate) fn generate( } } ) - ); + )?; } let source = String::from_utf8(out).unwrap(); let source = match format_source(&options, &source) { -- 2.30.2