Skip to content

Commit

Permalink
so clippy told me to use inspect in these places
Browse files Browse the repository at this point in the history
  • Loading branch information
Y0SH1M4S73R committed Oct 27, 2024
1 parent a4b3865 commit 2da9af6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions src/cache/global_proc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,8 @@ pub fn global_proccall_function(lua: &Lua, proc: String) -> LuaResult<OwnedFunct
wrapped_global_call(proc_name.clone(), args.to_vec()).into_printed_external()
})
.map(Function::into_owned)
.map(|func| {
.inspect(|func| {
map.insert(proc.clone(), func.clone());
func
})
}
})
Expand Down
3 changes: 1 addition & 2 deletions src/cache/object_proc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,8 @@ pub fn object_proccall_function(lua: &Lua, proc: String) -> LuaResult<OwnedFunct
.into_printed_external()
})
.map(Function::into_owned)
.map(|func| {
.inspect(|func| {
map.insert(proc.clone(), func.clone());
func
})
}
})
Expand Down

0 comments on commit 2da9af6

Please sign in to comment.