Skip to content
This repository was archived by the owner on Jan 19, 2021. It is now read-only.
This repository was archived by the owner on Jan 19, 2021. It is now read-only.

Item f32 is imported redundantly. Litecraft not compiling. #23

@mallgrab

Description

@mallgrab

Using latest nightly, will not compile since std::f32 got imported twice in src/core/camera/mod.rs

Expected Behavior 🤔

Successful compilation.

Current Behavior 😔

error: the item `f32` is imported redundantly
   --> src/core/camera/mod.rs:109:13
    |
18  | use std::f32;
    |     -------- the item `f32` is already imported here
...
109 |         use std::f32;
    |             ^^^^^^^^
    |
note: lint level defined here
   --> src/main.rs:19:9
    |
19  | #![deny(unused_imports)]
    |         ^^^^^^^^^^^^^^
error: aborting due to previous error
error: Could not compile `litecraft`.

Possible Solution 😅

Remove the line at 109 in src/core/camera/mod.rs

Steps to Reproduce 😱

  1. Update Rust to the latest nightly.
  2. Run 'cargo run'

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions