#function is never used

5 messages · Page 1 of 1 (latest)

unkempt dagger
#

Hello folks, fresh new project, I'm adding some commands and for my Rust code I get warning: function {whatever} is never used errors in development for pretty much all of my code that's external to the main.rs and lib.rs.
Is this something already reported?

half light
#

there was one other thread i can't find anymore (i hope it wasn't just you on another platform lol) but this is pretty much always your own fault and not on us == the code being actually unused.

unkempt dagger
#

The code isn't unused, it's just used via lib.rs

#

I mean, creating a command function and using it in lib.rs always ends up with the "is never used"

unkempt dagger
#

Ok, after some testing, it only happens when having the "mod" definitions in main.rs