Skip to content

Commit 9a70bbd

Browse files
committed
Fix formatting
1 parent d2134d9 commit 9a70bbd

File tree

3 files changed

+13
-9
lines changed

3 files changed

+13
-9
lines changed

examples/sol-contract/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ crate-type = ["cdylib", "lib"]
1212
arrayref = "0.3.6"
1313
borsh.workspace = true
1414
solana-program.workspace = true
15-
pyth-sdk-solana.workspace = true
15+
pyth-sdk-solana.workspace = true

pyth-sdk-solana/src/state.rs

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -128,13 +128,17 @@ pub enum PriceStatus {
128128

129129
impl std::fmt::Display for PriceStatus {
130130
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
131-
write!(f, "{}", match self {
132-
Self::Unknown =>"unknown",
133-
Self::Trading =>"trading",
134-
Self::Halted => "halted",
135-
Self::Auction =>"auction",
136-
Self::Ignored =>"ignored",
137-
})
131+
write!(
132+
f,
133+
"{}",
134+
match self {
135+
Self::Unknown => "unknown",
136+
Self::Trading => "trading",
137+
Self::Halted => "halted",
138+
Self::Auction => "auction",
139+
Self::Ignored => "ignored",
140+
}
141+
)
138142
}
139143
}
140144

pyth-sdk/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ crate-type = ["cdylib", "lib"]
1818
hex = { version = "0.4.3", features = ["serde"] }
1919
borsh.workspace = true
2020
borsh-derive.workspace = true
21-
serde = { worksapce = true, features = ["derive"] }
21+
serde = { workspace = true, features = ["derive"] }
2222
schemars = "0.8.8"
2323
getrandom = { version = "0.2.2", features = ["custom"] }
2424

0 commit comments

Comments
 (0)