tonarino / actor

A minimalist actor framework aiming for high performance and simplicity.
MIT License
40 stars 6 forks source link

Fix clippy 1.62 lint #69

Closed strohel closed 1 year ago

PabloMansanet commented 1 year ago

LGTM!

This reminds me of a story of a time long past, where I got in trouble for refactoring a C++ function that looked like this:

void foo() {
   auto* p = new BigClass();
   auto* q = new AnotherBigClass();
}

into this:

void foo() {
    new BigClass();
    new AnotherBigClass();
}

If you're going to leak, why not make it obvious right? :P