mirror of
https://github.com/servo/servo.git
synced 2025-08-05 21:50:18 +01:00
suppress build warnings when disabling webgpu and webxr (#35379)
Signed-off-by: webbeef <me@webbeef.org>
This commit is contained in:
parent
654df4c8b7
commit
827012fc08
8 changed files with 26 additions and 15 deletions
|
@ -3,6 +3,7 @@
|
|||
* file, You can obtain one at https://mozilla.org/MPL/2.0/. */
|
||||
|
||||
use core::fmt;
|
||||
#[cfg(feature = "webgpu")]
|
||||
use std::cell::RefCell;
|
||||
use std::option::Option;
|
||||
use std::result::Result;
|
||||
|
@ -402,7 +403,7 @@ impl ScriptThreadReceivers {
|
|||
}
|
||||
#[cfg(not(feature = "webgpu"))]
|
||||
{
|
||||
unreachable!("This should never be hit when webgpu is disabled");
|
||||
unreachable!("This should never be hit when webgpu is disabled ({msg:?})");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue