Skip to content

Commit

Permalink
fix: Compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
sbernauer committed Mar 18, 2024
1 parent a2fddc9 commit 135d2b7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion benches/benchmarks.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ async fn invoke_parse_pixelflut_commands(
}

fn benchmark_settings(c: &mut Criterion, name: &str, file: &str, config: ImageConfig) {
let mut commands = image_handler::load(vec![file], &config);
let mut commands = image_handler::load(vec![file], config);
let command = commands.pop().unwrap();
c.bench_with_input(
BenchmarkId::new(name, format!("{FRAMEBUFFER_WIDTH} x {FRAMEBUFFER_HEIGHT}")),
Expand Down
4 changes: 3 additions & 1 deletion src/parser.rs
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
use crate::framebuffer::FrameBuffer;
use const_format::formatcp;
use log::{info, warn};
use std::simd::{num::SimdUint, u32x8, Simd};
use std::slice::from_raw_parts;
use std::sync::Arc;
use tokio::io::AsyncWriteExt;

#[cfg(target_arch = "x86_64")]
use log::{info, warn};

pub const PARSER_LOOKAHEAD: usize = "PX 1234 1234 rrggbbaa\n".len(); // Longest possible command
pub const HELP_TEXT: &[u8] = formatcp!("\
Pixelflut server powered by breakwater https://github.com/sbernauer/breakwater
Expand Down

0 comments on commit 135d2b7

Please sign in to comment.