We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
forc-fmt
Formatter removes the empty line when a tuple is returned
#[storage(read)] fn get_prices(feed_ids: Vec<u256>, payload_bytes: Bytes) -> (Vec<u256>, u64) { let (aggregated_values, timestamp) = process_input(payload_bytes, config); (aggregated_values, timestamp) }
is formatted to
Use the code as above and run the formatter.
Do not remove the empty line as for non-tuple returns.
No response
active toolchain ---------------- testnet-aarch64-apple-darwin (override) (default), path: ... forc : 0.61.2 - forc-client - forc-deploy : 0.61.2 - forc-run : 0.61.2 - forc-crypto : 0.61.2 - forc-debug : 0.61.2 - forc-doc : 0.61.2 - forc-explore : 0.28.1 - forc-fmt : 0.61.2 - forc-lsp : 0.61.2 - forc-tx : 0.61.2 - forc-wallet : 0.8.1 fuel-core : 0.28.0 fuel-core-keygen : 0.28.0 fuels versions -------------- forc : 0.64.0 forc-wallet : 0.64.0
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Related Component
forc-fmt
Problem
Formatter removes the empty line when a tuple is returned
is formatted to
Steps
Use the code as above and run the formatter.
Possible Solution(s)
Do not remove the empty line as for non-tuple returns.
Notes
No response
Installed components
The text was updated successfully, but these errors were encountered: