Skip to content
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

Merged
merged 5 commits into from
Jul 27, 2021
Merged

Conversation

Azrenbeth
Copy link
Contributor

Moved code from inside the main function into function calls

Azrenbeth added 5 commits July 22, 2021 09:51
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!)
Copy link
Member

@erikjohnston erikjohnston left a 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 {
Copy link
Member

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?

Copy link
Contributor Author

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

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Woop!

@erikjohnston erikjohnston merged commit 31e3799 into matrix-org:main Jul 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants