Skip to content

Commit

Permalink
Remove unused import
Browse files Browse the repository at this point in the history
Starting around Rust 1.73 (I think) compiling wasmer started giving this error:

      Compiling wasmer v1.0.0 (/Users/{user}/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/wasmer-1.0.0/crates/wasmer)
    error: unused import: `ClassInfo`
    --> crates/wasmer/src/prelude.rs:3:62
      |
    3 | pub use rutie_derive::{rubyclass, rubyfunction, rubymethods, ClassInfo, UpcastRubyClass};
      |                                                              ^^^^^^^^^
      |

This seems to just be an unused struct. Removing it makes it compile and
everything still seems to work when I use the lib (test suite fails but it
does under older versions of Rust as well so I don't think that is related).
  • Loading branch information
Eric Anderson committed Mar 7, 2024
1 parent dcf7057 commit e991b7f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/wasmer/src/prelude.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
pub use crate::error::RubyResult;
pub use lazy_static::lazy_static;
pub use rutie_derive::{rubyclass, rubyfunction, rubymethods, ClassInfo, UpcastRubyClass};
pub use rutie_derive::{rubyclass, rubyfunction, rubymethods, UpcastRubyClass};

0 comments on commit e991b7f

Please sign in to comment.