mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2025-02-05 18:20:34 +00:00
rutabaga_gfx: replace u8 cast with byte literal
Fixes clippy warning: "casting a character literal to `u8` truncates" https://rust-lang.github.io/rust-clippy/master/index.html#char_lit_as_u8 BUG=None TEST=bin/clippy Change-Id: I822de805f122ee14cc4856c36c9ef48de6432fa2 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/2885780 Tested-by: kokoro <noreply+kokoro@google.com> Commit-Queue: Daniel Verkamp <dverkamp@chromium.org> Reviewed-by: Gurchetan Singh <gurchetansingh@chromium.org>
This commit is contained in:
parent
1bbbf1cad3
commit
0ee9babf9c
2 changed files with 1 additions and 2 deletions
|
@ -29,7 +29,6 @@ cd ..
|
|||
SUPPRESS=(
|
||||
# TODO(crbug/908640): To be resolved.
|
||||
borrowed_box
|
||||
char_lit_as_u8
|
||||
clone_on_copy
|
||||
collapsible_if
|
||||
comparison_chain
|
||||
|
|
|
@ -88,7 +88,7 @@ impl Drop for VirglRendererContext {
|
|||
#[cfg(any(target_arch = "x86", target_arch = "x86_64"))]
|
||||
extern "C" fn debug_callback(fmt: *const ::std::os::raw::c_char, ap: *mut __va_list_tag) {
|
||||
let len: u32 = 256;
|
||||
let mut c_str = CString::new(vec![' ' as u8; len as usize]).unwrap();
|
||||
let mut c_str = CString::new(vec![b' '; len as usize]).unwrap();
|
||||
unsafe {
|
||||
let mut varargs = __va_list_tag {
|
||||
gp_offset: (*ap).gp_offset,
|
||||
|
|
Loading…
Reference in a new issue