Skip to content

chore: enforce clippy::semicolon_if_nothing_returned linting rule#1139

Merged
kevaundray merged 2 commits intomasterfrom
enforce-semicolon
Apr 12, 2023
Merged

chore: enforce clippy::semicolon_if_nothing_returned linting rule#1139
kevaundray merged 2 commits intomasterfrom
enforce-semicolon

Conversation

@TomAFrench
Copy link
Copy Markdown
Member

Related issue(s)

Resolves #

Description

Summary of changes

This PR is a noop. I quite like the visual cue that semicolons give that nothing is being returned, but we're currently inconsistent on this with a mix of including vs omitting these semicolons. I've added a lint to standardise this and addressed any instances of missing semicolons.

https://rust-lang.github.io/rust-clippy/master/index.html#semicolon_if_nothing_returned

Dependency additions / changes

Test additions / changes

Checklist

  • I have tested the changes locally.
  • I have formatted the changes with Prettier and/or cargo fmt with default settings.
  • I have linked this PR to the issue(s) that it resolves.
  • I have reviewed the changes on GitHub, line by line.
  • I have ensured all changes are covered in the description.

Documentation needs

  • This PR requires documentation updates when merged.

Additional context

@kevaundray kevaundray added this pull request to the merge queue Apr 12, 2023
Merged via the queue into master with commit 24adcc0 Apr 12, 2023
@kevaundray kevaundray deleted the enforce-semicolon branch April 12, 2023 13:19
TomAFrench added a commit that referenced this pull request Apr 12, 2023
* master:
  feat: import core logic in cli from `nargo` crate (#1142)
  chore: enforce `clippy::semicolon_if_nothing_returned` linting rule (#1139)
  chore: borrow instead of cloning witness vectors in IR gen (#1127)
TomAFrench added a commit that referenced this pull request Apr 13, 2023
* master:
  feat(nargo)!: define preprocessed artifacts for programs/contracts (#1126)
  feat: import core logic in cli from `nargo` crate (#1142)
  chore: enforce `clippy::semicolon_if_nothing_returned` linting rule (#1139)
  chore: borrow instead of cloning witness vectors in IR gen (#1127)
  fix: compiler identifying imported functions as being part of a contract (#1112)
  feat: Add new `Vec` type to frontend (#1103)
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