Enforce newline after assignment / clause.
This leads to more consistent formatting across entire Aiken programs. Before that commit, only long expressions would be formatted on a newline, causing non-consistent formatting and additional reading barrier when looking at source code. Programs also now take more vertical space, which is better for more friendly diffing in version control systems (especially git).
This commit is contained in:
@@ -8,9 +8,11 @@ use aiken/transaction/credential.{
|
||||
}
|
||||
use aiken/transaction/value
|
||||
|
||||
const keyhash = #"010203040506"
|
||||
const keyhash =
|
||||
#"010203040506"
|
||||
|
||||
const scripthash = #"060504030201"
|
||||
const scripthash =
|
||||
#"060504030201"
|
||||
|
||||
pub fn keyhash_address(with_stake_credential: Option<StakeCredential>) {
|
||||
Address {
|
||||
@@ -32,7 +34,8 @@ type SampleData {
|
||||
}
|
||||
|
||||
pub fn tx_1() -> Transaction {
|
||||
let sample_datum = SampleData { a: 1, b: #"01" }
|
||||
let sample_datum =
|
||||
SampleData { a: 1, b: #"01" }
|
||||
let tx =
|
||||
Transaction {
|
||||
inputs: [
|
||||
|
||||
Reference in New Issue
Block a user