Skip to content

Commit acdb8bb

Browse files
committed
clippy
1 parent 97232f5 commit acdb8bb

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

crates/core/src/instruction.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,7 @@ impl InstructionMetadata {
8282
pub fn decode_log_events<T: CarbonDeserialize>(&self) -> Vec<T> {
8383
self.extract_event_log_data()
8484
.into_iter()
85-
.map(|log| <T as CarbonDeserialize>::deserialize(&mut &log[8..]))
86-
.flatten()
85+
.filter_map(|log| <T as CarbonDeserialize>::deserialize(&log[8..]))
8786
.collect()
8887
}
8988

examples/log-events-example/Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@ version = "0.9.1"
44
edition = { workspace = true }
55

66
[dependencies]
7+
8+
async-trait = { workspace = true }
79
carbon-core = { workspace = true }
8-
carbon-raydium-cpmm-decoder = { workspace = true }
910
carbon-log-metrics = { workspace = true }
11+
carbon-raydium-cpmm-decoder = { workspace = true }
1012
carbon-yellowstone-grpc-datasource = { workspace = true }
11-
12-
async-trait = { workspace = true }
1313
dotenv = { workspace = true }
1414
env_logger = { workspace = true }
1515
solana-instruction = { workspace = true }

0 commit comments

Comments
 (0)