Skip to content

Commit

Permalink
make clippy happy
Browse files Browse the repository at this point in the history
  • Loading branch information
burmecia committed Jun 13, 2024
1 parent 0855ab8 commit 28d2243
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions wrappers/src/fdw/wasm_fdw/wasm_fdw.rs
Original file line number Diff line number Diff line change
@@ -131,7 +131,7 @@ impl ForeignDataWrapper<WasmFdwError> for WasmFdw {
Wrappers::add_to_linker(&mut linker, |host: &mut FdwHost| host)?;

let mut fdw_host = FdwHost::new(rt);
fdw_host.svr_opts = options.clone();
fdw_host.svr_opts.clone_from(options);

let mut store = Store::new(&engine, fdw_host);
let (bindings, _) = Wrappers::instantiate(&mut store, &component, &linker)?;
@@ -167,8 +167,8 @@ impl ForeignDataWrapper<WasmFdwError> for WasmFdw {
fdw_state.quals = quals.to_vec();
fdw_state.columns = columns.to_vec();
fdw_state.sorts = sorts.to_vec();
fdw_state.limit = limit.clone();
fdw_state.tbl_opts = options.clone();
fdw_state.limit.clone_from(limit);
fdw_state.tbl_opts.clone_from(options);

let ctx = self.get_context();
self.bindings
@@ -212,7 +212,7 @@ impl ForeignDataWrapper<WasmFdwError> for WasmFdw {

fn begin_modify(&mut self, options: &HashMap<String, String>) -> WasmFdwResult<()> {
let fdw_state = self.store.data_mut();
fdw_state.tbl_opts = options.clone();
fdw_state.tbl_opts.clone_from(options);
let ctx = self.get_context();
self.bindings
.supabase_wrappers_routines()

0 comments on commit 28d2243

Please sign in to comment.