Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/export.rs
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ fn render_obj(
}
}

let write_face_vertex = |sink: &mut io::Write, vertex_index| -> Result<(), ExportError> {
let write_face_vertex = |sink: &mut dyn io::Write, vertex_index| -> Result<(), ExportError> {
if let Some(_) = output_mesh.normals() {
try_write_mtl!(write!(
sink,
Expand Down
2 changes: 1 addition & 1 deletion src/mesh.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ use nalgebra::base::dimension::{U1, U4};
use std::rc::Rc;

/// A type for custom mesh vertices. Initialize with [vertex][self::vertex].
pub type Vertex = nalgebra::Matrix<f32, U4, U1, nalgebra::MatrixArray<f32, U4, U1>>;
pub type Vertex = nalgebra::Matrix<f32, U4, U1, nalgebra::ArrayStorage<f32, U4, U1>>;

/// Initializes a vertex for a custom mesh.
pub fn vertex(x: f32, y: f32, z: f32) -> Vertex {
Expand Down
2 changes: 1 addition & 1 deletion src/rule.rs
Original file line number Diff line number Diff line change
Expand Up @@ -234,5 +234,5 @@ impl ToRule for Rc<Mesh> {
#[derive(Clone)]
enum RuleInternal {
Mesh(OutputMeshSource),
Invocations(Rc<ToRule>),
Invocations(Rc<dyn ToRule>),
}