Skip to content

Commit

Permalink
clean up more warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
gillett-hernandez committed May 19, 2024
1 parent 77681f6 commit 51d6282
Show file tree
Hide file tree
Showing 7 changed files with 5 additions and 24 deletions.
4 changes: 0 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,6 @@ name = "raymarch"
path = "src/bin/raymarch.rs"
required-features = ["build_raymarch"]

[[bin]]
name = "medium_test"
path = "src/bin/medium_test.rs"

[[bin]]
name = "color_test"
path = "src/bin/color_test.rs"
Expand Down
13 changes: 0 additions & 13 deletions src/bin/medium_test.rs

This file was deleted.

5 changes: 1 addition & 4 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ extern crate log;
#[macro_use]
extern crate paste;


#[cfg(feature = "minifb")]
use minifb::{Key, Window, WindowOptions};
use rayon::prelude::*;
Expand Down Expand Up @@ -71,9 +70,7 @@ pub fn window_loop<F>(
F: FnMut(&Window, &mut Vec<u32>, usize, usize) -> (),
{
let mut window = Window::new("Window", width, height, options).unwrap();
window.limit_update_rate(Some(std::time::Duration::from_micros(
(1000000 / max_framerate) as u64,
)));
window.set_target_fps(max_framerate);

let mut film = Vec2D::new(width, height, 0u32);
while window.is_open() && !window.is_key_down(Key::Escape) {
Expand Down
1 change: 0 additions & 1 deletion src/renderer/naive.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
use super::prelude::*;
use crate::prelude::*;

use crate::integrator::*;

Expand Down
1 change: 1 addition & 0 deletions src/renderer/prelude.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
pub use crate::prelude::*;
pub use crate::parsing::config::{Config, IntegratorKind, RenderSettings};
pub use crate::profile::Profile;
pub use crate::world::{EnvironmentMap, World};
Expand Down
4 changes: 3 additions & 1 deletion src/renderer/preview.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
// only needed because the actual code that uses these imports is gated
// behind a feature flag which the compiler does not seem to detect even though
#![allow(unused_imports)]
use super::prelude::*;
use crate::prelude::*;

use crate::parsing::config::{Config, RenderSettings, RendererType, Resolution};
// use crate::integrator::*;
Expand Down
1 change: 0 additions & 1 deletion src/renderer/tiled.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
use super::prelude::*;
use crate::prelude::*;

use crate::integrator::*;

Expand Down

0 comments on commit 51d6282

Please sign in to comment.