Tutorial 9. Texture::load() return type fix

pull/151/head
vigdail 3 years ago committed by GitHub
parent 80ecaade61
commit 9f254cc794
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -127,7 +127,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