Skip to content

Commit 5717039

Browse files
committed
clippy fixes
1 parent 6fd4328 commit 5717039

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

apps/pyth-lazer-agent/src/lazer_publisher.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ mod tests {
189189
let mut temp_file = NamedTempFile::new().unwrap();
190190
temp_file
191191
.as_file_mut()
192-
.write(private_key_string.as_bytes())
192+
.write_all(private_key_string.as_bytes())
193193
.unwrap();
194194
temp_file.flush().unwrap();
195195
temp_file
@@ -228,7 +228,7 @@ mod tests {
228228
feed_id: Some(1),
229229
source_timestamp: MessageField::some(Timestamp::now()),
230230
update: Some(Update::PriceUpdate(PriceUpdate {
231-
price: Some(100_000_00000000),
231+
price: Some(100_000 * 100_000_000),
232232
..PriceUpdate::default()
233233
})),
234234
special_fields: Default::default(),

0 commit comments

Comments
 (0)