Skip to content

Commit 80dea71

Browse files
committed
fix: cargo clippy --all --fix
1 parent f7ae8f1 commit 80dea71

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

  • contracts/test/registry-stub/src

contracts/test/registry-stub/src/lib.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,21 +13,21 @@ pub struct RegistryStub;
1313

1414
#[contractimpl]
1515
impl RegistryStub {
16-
pub fn __constructor(env: Env, manager: Address) {
16+
pub fn __constructor(env: &Env, manager: &Address) {
1717
env.storage().instance().set(&Key::Manager, &manager);
1818
}
1919

2020
/// Mirrors the real registry's manager-only entry points: requires the
2121
/// stored manager's auth and records the value so tests can assert the
2222
/// call went through.
23-
pub fn manager_only(env: Env, value: u32) -> u32 {
23+
pub fn manager_only(env: &Env, value: u32) -> u32 {
2424
let manager: Address = env.storage().instance().get(&Key::Manager).unwrap();
2525
manager.require_auth();
2626
env.storage().instance().set(&Key::Recorded, &value);
2727
value
2828
}
2929

30-
pub fn recorded(env: Env) -> Option<u32> {
30+
pub fn recorded(env: &Env) -> Option<u32> {
3131
env.storage().instance().get(&Key::Recorded)
3232
}
3333
}

0 commit comments

Comments
 (0)