minus-squarefrancorbacho@lemmy.worldtoRust@programming.dev•Can I not use dot in filename for a Rust module?linkfedilinkarrow-up6·1 year agoDots are not allowed. If it’s not too much code, you can use inline modules, otherwise you have to stick to: action/ attack/test/ mod.rs And then: mod attack::test; linkfedilink
Dots are not allowed. If it’s not too much code, you can use inline modules, otherwise you have to stick to:
And then:
mod attack::test;