rust-windowing / softbuffer

Easily write an image to a window
Apache License 2.0
333 stars 48 forks source link

examples: Make `utils/winit_app.rs` a `path`-referenced module again to fix autoformatting #227

Closed MarijnS95 closed 4 months ago

MarijnS95 commented 4 months ago

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.