Skip to content

Commit

Permalink
Re-create lib.rs, compiler crashes
Browse files Browse the repository at this point in the history
  • Loading branch information
smukherjee2016 committed May 20, 2019
1 parent 7c41789 commit ecf225f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
6 changes: 6 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
pub mod camera;
pub mod common;
pub mod film;
pub mod geometry;
pub mod utilities;
pub mod scene;
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use flexi_logger::{with_thread, Logger};
use log::warn;
use sayo_pbr_rs::SceneConfig;
use sayo_pbr_rs::scene::SceneConfig;
use std::error::Error;
use std::process;
use std::time::Instant;
Expand Down
6 changes: 1 addition & 5 deletions src/scene/mod.rs
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
use std::error::Error;
use std::fs;
use std::path::{Path, PathBuf};
mod camera;
mod common;
mod film;
mod geometry;
mod utilities;

use crate::camera::pinholecamera::PinholeCamera;
use crate::camera::Camera;
Expand All @@ -14,6 +9,7 @@ use crate::film::Film;
use crate::geometry::triangle::{Triangle, TriangleMesh};
use crate::geometry::Hitable;
use toml::Value;
use crate::utilities;

pub struct SceneConfig {
pub scene_file_name: PathBuf,
Expand Down

0 comments on commit ecf225f

Please sign in to comment.