Merge pull request #151 from vigdail/patch-1

Tutorial 9. Texture::load() return type fix
pull/154/head
sotrh 3 years ago committed by GitHub
commit d5ab40ade1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -140,7 +140,7 @@ pub fn load<P: AsRef<Path>>(
device: &wgpu::Device,
queue: &wgpu::Queue,
path: P,
) -> Result<(Self, wgpu::CommandBuffer), failure::Error> {
) -> Result<Self> {
// Needed to appease the borrow checker
let path_copy = path.as_ref().to_path_buf();
let label = path_copy.to_str();

Loading…
Cancel
Save