Skip to content

Commit

Permalink
fix cargo clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
LEXUGE committed Jan 23, 2023
1 parent e482c2d commit 714ced1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions droute/src/router/script/rune_scripting/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ impl ScriptBackend for RuneScript {
let query: NewMessage = query.into();

vm.send_execute(
&["route"],
["route"],
(self.upstreams.clone(), self.inited.clone(), ctx, query),
)?
};
Expand Down Expand Up @@ -134,7 +134,7 @@ impl ScriptBuilder<RuneScript> for RuneScriptBuilder {
let mut vm = Vm::new(runtime.clone(), unit.clone());

// Don't error if we cannot find init function, just return an empty object
let inited = if unit.function(rune::Hash::type_hash(&["init"])).is_some() {
let inited = if unit.function(rune::Hash::type_hash(["init"])).is_some() {
<Result<HashMap<String, Utils>>>::from_value(vm.async_call(&["init"], ()).await?)??
} else {
HashMap::<String, Utils>::new()
Expand Down

0 comments on commit 714ced1

Please sign in to comment.