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(ast_tools): TypeDef::name return a &str #6776

Merged

Conversation

overlookmotel
Copy link
Contributor

@overlookmotel overlookmotel commented Oct 22, 2024

It's generally an anti-pattern for functions to return &String. &str is preferable.

Copy link

graphite-app bot commented Oct 22, 2024

Your org has enabled the Graphite merge queue for merging into main

Add the label “0-merge” to the PR and Graphite will automatically add it to the merge queue when it’s ready to merge. Or use the label “hotfix” to add to the merge queue as a hot fix.

You must have a Graphite account and log in to Graphite in order to use the merge queue. Sign up using this link.

Copy link
Contributor Author

overlookmotel commented Oct 22, 2024

@github-actions github-actions bot added the C-cleanup Category - technical debt or refactoring. Solution not expected to change behavior label Oct 22, 2024
@overlookmotel overlookmotel marked this pull request as ready for review October 22, 2024 11:39
@Boshen Boshen added the 0-merge Merge with Graphite Merge Queue label Oct 22, 2024
Copy link
Member

Boshen commented Oct 22, 2024

Merge activity

  • Oct 22, 8:09 AM EDT: The merge label '0-merge' was detected. This PR will be added to the Graphite merge queue once it meets the requirements.
  • Oct 22, 8:09 AM EDT: A user added this pull request to the Graphite merge queue.
  • Oct 22, 8:27 AM EDT: A user merged this pull request with the Graphite merge queue.

@Boshen Boshen force-pushed the 10-22-refactor_ast_tools_shorter_code_in_astkindgenerator_ branch from e167a03 to bf035d1 Compare October 22, 2024 12:11
Boshen pushed a commit that referenced this pull request Oct 22, 2024
It's generally an anti-pattern for functions to return `&String`. `&str` is preferable.
@Boshen Boshen force-pushed the 10-22-refactor_ast_tools_typedef_name_return_a_str_ branch from ea2b440 to d1f9938 Compare October 22, 2024 12:12
It's generally an anti-pattern for functions to return `&String`. `&str` is preferable.
@Boshen Boshen force-pushed the 10-22-refactor_ast_tools_shorter_code_in_astkindgenerator_ branch from bf035d1 to 09d2df1 Compare October 22, 2024 12:15
@Boshen Boshen force-pushed the 10-22-refactor_ast_tools_typedef_name_return_a_str_ branch from d1f9938 to d2b8f50 Compare October 22, 2024 12:16
Base automatically changed from 10-22-refactor_ast_tools_shorter_code_in_astkindgenerator_ to main October 22, 2024 12:25
@graphite-app graphite-app bot merged commit d2b8f50 into main Oct 22, 2024
16 checks passed
@graphite-app graphite-app bot deleted the 10-22-refactor_ast_tools_typedef_name_return_a_str_ branch October 22, 2024 12:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0-merge Merge with Graphite Merge Queue A-ast-tools Area - AST tools C-cleanup Category - technical debt or refactoring. Solution not expected to change behavior
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants