|
247 | 247 | <a href="#246" id="246">246</a> |
248 | 248 | <a href="#247" id="247">247</a> |
249 | 249 | <a href="#248" id="248">248</a> |
250 | | -<a href="#249" id="249">249</a></pre></div><pre class="rust"><code><span class="kw">use </span>alloc::{ |
251 | | - string::{String, ToString <span class="kw">as _</span>}, |
252 | | - vec, |
253 | | - vec::Vec, |
254 | | -}; |
| 250 | +<a href="#249" id="249">249</a></pre></div><pre class="rust"><code><span class="kw">use </span>alloc::{string::String, vec::Vec}; |
255 | 251 | <span class="kw">use </span>core::{future::Future, marker::PhantomData}; |
256 | 252 |
|
257 | 253 | <span class="kw">use crate</span>::<span class="kw-2">*</span>; |
|
347 | 343 | <span class="kw">for </span>CompilationInfo |
348 | 344 | { |
349 | 345 | <span class="kw">fn </span>from(value: <span class="kw">crate</span>::naga::error::ShaderError<<span class="kw">crate</span>::naga::front::wgsl::ParseError>) -> <span class="self">Self </span>{ |
| 346 | + <span class="kw">use </span>alloc::{string::ToString, vec}; |
350 | 347 | CompilationInfo { |
351 | 348 | messages: <span class="macro">vec!</span>[CompilationMessage { |
352 | 349 | message: value.to_string(), |
|
359 | 356 | <span class="attr">#[cfg(feature = <span class="string">"glsl"</span>)] |
360 | 357 | </span><span class="kw">impl </span>From<naga::error::ShaderError<naga::front::glsl::ParseErrors>> <span class="kw">for </span>CompilationInfo { |
361 | 358 | <span class="kw">fn </span>from(value: naga::error::ShaderError<naga::front::glsl::ParseErrors>) -> <span class="self">Self </span>{ |
| 359 | + <span class="kw">use </span>alloc::string::ToString; |
362 | 360 | <span class="kw">let </span>messages = value |
363 | 361 | .inner |
364 | 362 | .errors |
|
376 | 374 | <span class="attr">#[cfg(feature = <span class="string">"spirv"</span>)] |
377 | 375 | </span><span class="kw">impl </span>From<naga::error::ShaderError<naga::front::spv::Error>> <span class="kw">for </span>CompilationInfo { |
378 | 376 | <span class="kw">fn </span>from(value: naga::error::ShaderError<naga::front::spv::Error>) -> <span class="self">Self </span>{ |
| 377 | + <span class="kw">use </span>alloc::{string::ToString, vec}; |
379 | 378 | CompilationInfo { |
380 | 379 | messages: <span class="macro">vec!</span>[CompilationMessage { |
381 | 380 | message: value.to_string(), |
|
397 | 396 | <span class="kw">crate</span>::naga::WithSpan<<span class="kw">crate</span>::naga::valid::ValidationError>, |
398 | 397 | >, |
399 | 398 | ) -> <span class="self">Self </span>{ |
| 399 | + <span class="kw">use </span>alloc::{string::ToString, vec}; |
400 | 400 | CompilationInfo { |
401 | 401 | messages: <span class="macro">vec!</span>[CompilationMessage { |
402 | 402 | message: value.to_string(), |
|
0 commit comments