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

refactor: Rewrite hostname, jobs and line_break module to use module config #462

Merged

Conversation

heyrict
Copy link
Member

@heyrict heyrict commented Oct 1, 2019

Description

This is a batch rewrite of the following modules:

  • hostname
  • jobs
  • line_break

Motivation and Context

Related #383

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

Screenshots (if appropriate):

How Has This Been Tested?

  • I have tested using MacOS
  • I have tested using Linux
  • I have tested using Windows

Checklist:

  • I have updated the documentation accordingly.
  • I have updated the tests accordingly.

Copy link
Member

@matchai matchai left a comment

Choose a reason for hiding this comment

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

Sorry for the long wait to review. Looks good to me! 👍

Just looks like we're hitting an ownership error during compilation:
https://github.com/starship/starship/pull/462/checks?check_run_id=251463098#step:4:653

@heyrict heyrict force-pushed the refactor_config_update_module_hostname branch from a5a7d97 to cbd5562 Compare October 8, 2019 06:17
@heyrict heyrict force-pushed the refactor_config_update_module_hostname branch from cbd5562 to c6cd506 Compare October 8, 2019 10:44
@heyrict
Copy link
Member Author

heyrict commented Oct 8, 2019

Solved by moving fn new(value: &'static str) -> Self to fn new(value: &'a str) -> Self in SegmentConfig

@matchai matchai merged commit 57b38f1 into starship:master Oct 10, 2019
@heyrict heyrict deleted the refactor_config_update_module_hostname branch October 10, 2019 09:24
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.

None yet

2 participants