Many of the functions have not been error handled : /
Apparently, I have to look at references to see how to handle errors in Rust. It's kinda different to how we do it in Golang : ) . However, will do it after implementing other functionalities.
@shubhexists love the project idea, let me take this one up for existing functions
Also found out code is not modular, we should avoid global functions.
Hi thanks, I am aware much of the code here is not up to the mark ( or is not error handled ). A bit of back-story here - Though the project is about 3 weeks old, I found out that I was approaching the Version Control System in a wrong way. Previous Branch has that approach. So, had to restart from the beginning..
I very recently (in fact a day before yesterday) became aware of how git works internally... Hence, my primary goal for now was to atleast get the new version up and running and then we can correct the project structure and mistakes later on.. Anyways thanks for pointing out. Any help / PR's would be appreciated : )
Also, the function declared is not global.. In rust every new file is a module, and any function defined in a module is by default "private". i.e. It can't be used in other modules.. To make it "public" , we need to add a "pub" keyword in front of it. As done here.
Also, I might be unaware of much of the practices that are to be applied. I am very new to Rust ( I took this project in hopes that I would get a bit familiar with Rust).