[glsl-out] Use fmt::Writer instead of io::Writer

This commit is contained in:
Gordon-F authored and Dzmitry Malyshau committed 2021-04-20 09:09:35 -04:00
1 parent 446f5dad6f
commit c37ae5e2a0
4 files changed
+12 -25

No files matched your search

+1 -1
View File
@@ -3,7 +3,7 @@ use crate::{
Binding, Bytes, Handle, ImageClass, ImageDimension, Interpolation, Sampling, ScalarKind,
ShaderStage, StorageClass, StorageFormat, Type, TypeInner,
};
use std::io::Write;
use std::fmt::Write;
bitflags::bitflags! {
/// Structure used to encode a set of additions to glsl that aren't supported by all versions
+3 -3
View File
@@ -57,7 +57,7 @@ use features::FeaturesManager;
use std::{
cmp::Ordering,
fmt,
io::{Error as IoError, Write},
fmt::{Error as FmtError, Write},
};
use thiserror::Error;
@@ -271,8 +271,8 @@ type BackendResult = Result<(), Error>;
#[derive(Debug, Error)]
pub enum Error {
/// A error occurred while writing to the output
#[error("I/O error")]
IoError(#[from] IoError),
#[error("Format error")]
FmtError(#[from] FmtError),
/// The specified [`Version`](Version) doesn't have all required [`Features`](super)
///
/// Contains the missing [`Features`](Features)