snelltrail / rust_number

0 stars 1 forks source link

Made everything public to get rid of warnings #3

Closed joelypoley closed 6 years ago

joelypoley commented 6 years ago

Stops warnings like this one

$ cargo test
   Compiling rust_number v0.1.0 (file:///Users/jlai052/github/rust_number)
warning: method is never used: `new`
 --> src/integer.rs:9:5
  |
9 |     fn new(is_negative: bool, digits: Vec<u32>) -> Int {
  |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  |
  = note: #[warn(dead_code)] on by default

by making everything public.