-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Azren/split up main #39
Conversation
Moved SQL outputting code into a seperate function Moved code that checks validity of compression to a seperate function
This means that the database changes will only be output if they are valid (otherwise may accidently carry out transactions!)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Other than needing some doc comments looks good!
fn main() { | ||
#[allow(deprecated)] | ||
let matches = App::new(crate_name!()) | ||
struct Config { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I know that the code base doesn't really have them atm, but can you add doc comments to the new structs and functions to say what they do please?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah sorry they're added in azren/documented_lib
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Woop!
Moved code from inside the main function into function calls