Skip to content

Commit d607a25

Browse files
committed
style(streaming): format lib.rs with cargo fmt
1 parent 929b597 commit d607a25

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

‎contracts/streaming/src/lib.rs‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -294,8 +294,6 @@ pub struct UnpauseEvent {
294294
pub timestamp: u64,
295295
}
296296

297-
298-
299297
// ─── Contract ────────────────────────────────────────────────────────────────
300298

301299
#[contract]
@@ -371,7 +369,11 @@ impl StreamingContract {
371369
/// Upgrade the contract wasm. Only callable by the admin.
372370
pub fn upgrade(env: Env, admin: Address, new_wasm_hash: BytesN<32>) -> Result<(), StreamError> {
373371
admin.require_auth();
374-
let stored_admin: Address = env.storage().instance().get(&DataKey::Admin).ok_or(StreamError::NotInitialized)?;
372+
let stored_admin: Address = env
373+
.storage()
374+
.instance()
375+
.get(&DataKey::Admin)
376+
.ok_or(StreamError::NotInitialized)?;
375377
if admin != stored_admin {
376378
return Err(StreamError::Unauthorized);
377379
}
@@ -989,8 +991,6 @@ impl StreamingContract {
989991
Ok(())
990992
}
991993

992-
993-
994994
// ── Read: Stream data ────────────────────────────────────────────────────
995995

996996
/// Get a stream by ID.

0 commit comments

Comments
 (0)