1 parent 3810433 commit 6f7615aCopy full SHA for 6f7615a
1 file changed
src/mesh.rs
@@ -113,9 +113,9 @@ impl Mesh {
113
"-" => {
114
// create_stl_reader requires Seek, so we must read the entire stream into memory before proceeding.
115
// So I guess this can just consume all RAM if it gets bad input. Hmmm....
116
- let mut model_buffer = Vec::new();
117
- io::stdin().read_to_end(&mut model_buffer)?;
118
- Mesh::from_stl(Cursor::new(model_buffer), recalc_normals)
+ let mut input_buffer = Vec::new();
+ io::stdin().read_to_end(&mut input_buffer)?;
+ Mesh::from_stl(Cursor::new(input_buffer), recalc_normals)
119
}
120
_ => {
121
let model_filename = std::path::Path::new(model_filename);
0 commit comments