Simplify to std::io::Result

This commit is contained in:
Nick Rolfe
2020-10-21 11:26:23 +01:00
parent fd1f8b22e2
commit 47c8a3d6fb

View File

@@ -102,7 +102,7 @@ pub fn escape_name(name: &str) -> String {
}
/// Generates the dbscheme by writing the given dbscheme `entries` to the `file`.
pub fn write(file: &mut dyn std::io::Write, entries: &[Entry]) -> Result<(), std::io::Error> {
pub fn write(file: &mut dyn std::io::Write, entries: &[Entry]) -> std::io::Result<()> {
write!(file, "// CodeQL database schema for Ruby\n")?;
write!(
file,