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

ISSUE-16 - Further refactoring #122

Merged

Conversation

jmcconnell26
Copy link
Contributor

  • Split out scan modules further
  • Create custom_executor module
  • Simplify some functions and reduce unnecessary exposing of some
    functions/structs to the whole bin

* Split out scan modules further
* Create custom_executor module
* Simplify some functions and reduce unnecessary exposing of some
  functions/structs to the whole bin
Copy link
Contributor

@anderejd anderejd left a comment

Choose a reason for hiding this comment

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

Looks great! 🏆

Comment on lines +12 to +19
pub fn emoji(&self, kind: SymbolKind) -> Box<dyn std::fmt::Display> {
let idx = kind as usize;
if self.will_output_emoji() {
Box::new(self.emojis[idx])
} else {
Box::new(self.fallbacks[idx].clone())
}
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Just curious, what's the motivation for moving this function? :)
EDIT: Sorting functions by name? If yes, then 👍

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, exactly! I find it so much quicker to work with files where the functions are sorted by name


// Is anyone using this? This is a carry-over from cargo-tree.
// TODO: Open a github issue to discuss deprecation.
pub format: &'a Pattern,
pub format: Pattern,
Copy link
Contributor

Choose a reason for hiding this comment

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

👍 eliminating unnecessary borrows, nice.

@anderejd anderejd merged commit 488b54e into geiger-rs:master Oct 4, 2020
@jmcconnell26 jmcconnell26 deleted the ISSUE-16-FurtherRefactoring2 branch October 5, 2020 02:20
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