From: Jacob Lifshay Date: Wed, 31 Oct 2018 00:43:30 +0000 (-0700) Subject: fix missing try (?) operators on result of writeln X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=454245e1bddda22a0ea59dc538bbaf2b3f3ac51d;p=kazan.git fix missing try (?) operators on result of writeln --- 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) {