Enable all lints from the rust-2018-idioms suite.
Additionally, fix the violation of the bare-trait-objects lint.
#include <QApplication>
#include "mainform.h"
int main(int argc, char *argv[])
{
QApplication app(argc, argv);
MyWindow *mainWin = new MyWindow;
mainWin->show();
return app.exec();
}