make
make join_testnet
# OR
make join_mainnet
correct style:
use {
std::{env, thread, rand::random},
clap::Arg
};
wrong style:
extern crate rand;
use std::env;
use std::thread;
use rand::random;
// avoid '*' in importing
use clap::*;
Warnings are not allowed in any formal code; However, they are allowed in the test code.
correct style:
// lib.rs
#![deny(warnings)]
wrong style:
// any formal modular
#![allow(warnings)]
correct style:
mod abc {
//!
//! # Modular Docs
//!
#![deny(missing_docs)]
fn xxx() {}
}
wrong style:
/// # Modular Docs
mod abc {
#![allow(missing_docs)]
fn xxx() {}
}
correct style:
mod a;
mod b;
use std::env;
wrong style:
use std::env;
mod a;
mod b;