summaryrefslogtreecommitdiffstats
path: root/rsnix/src/gop.rs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--rsnix/src/gop.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/rsnix/src/gop.rs b/rsnix/src/gop.rs
index d37468f..7aeb224 100644
--- a/rsnix/src/gop.rs
+++ b/rsnix/src/gop.rs
@@ -257,7 +257,8 @@ pub fn init(gop: &mut GraphicsOutputProtocol) {
257 let words = (fbinfo.pitch * fbinfo.height) / 4; 257 let words = (fbinfo.pitch * fbinfo.height) / 4;
258 if words > 0 { 258 if words > 0 {
259 let bytes = words * 4; 259 let bytes = words * 4;
260 #[allow(clippy::slow_vector_initialization)] // deliberate: try_reserve must not panic 260 #[allow(clippy::slow_vector_initialization)]
261 // deliberate: try_reserve must not panic
261 let mut v: alloc::vec::Vec<u32> = alloc::vec::Vec::new(); 262 let mut v: alloc::vec::Vec<u32> = alloc::vec::Vec::new();
262 if v.try_reserve_exact(words).is_ok() { 263 if v.try_reserve_exact(words).is_ok() {
263 v.resize(words, 0); // can't fail after the reserve 264 v.resize(words, 0); // can't fail after the reserve
@@ -284,8 +285,7 @@ pub fn init(gop: &mut GraphicsOutputProtocol) {
284 rbase + rsize, 285 rbase + rsize,
285 ); 286 );
286 if SHADOW.is_null() { 287 if SHADOW.is_null() {
287 let msg = 288 let msg = "gop: WARNING — shadow rejected (fb overlap); no-shadow fallback";
288 "gop: WARNING — shadow rejected (fb overlap); no-shadow fallback";
289 crate::serial_println!("{}", msg); 289 crate::serial_println!("{}", msg);
290 let lines: alloc::vec::Vec<&str> = msg 290 let lines: alloc::vec::Vec<&str> = msg
291 .as_bytes() 291 .as_bytes()