Via include!()rustfmt doesn't know that this file belongs to the current project and doesn't autoformat it. Furthermore, jump-to-symbol likely doesn't play that well with include!().
Without creating a lib.rs file in utils/, use #[path] to reference the existing file without following a module hierarchy.
Note that the file remains in the utils/ folder as that doesn't get picked up by autoexamples.
Via
include!()
rustfmt
doesn't know that this file belongs to the current project and doesn't autoformat it. Furthermore, jump-to-symbol likely doesn't play that well withinclude!()
.Without creating a
lib.rs
file inutils/
, use#[path]
to reference the existing file without following amod
ule hierarchy.Note that the file remains in the
utils/
folder as that doesn't get picked up byautoexamples
.