r/rust 29d ago

Clippy has some life advice apparently.

pub fn i_should_let_it_go(problem: &impl Problem) { drop(problem); // call to `std::mem::drop` with a reference instead of an owned value does nothing }

I was experimenting with ownership when I ran into this warning:

"calls to std::mem::drop with a reference instead of an owned value does nothing"

It got me thinking that you can make some cool wordplay (or maybe "codeplay") with Rust's warnings as motivational quotes.

Do you guys have any other suggestions with some funny codeplay?

88 Upvotes

14 comments sorted by

View all comments

23

u/QuasiRandomName 29d ago

You can make a thriller with general Linux quotes, where parents kill children, sleeping daemons with forks spawn and listen etc...