aboutsummaryrefslogtreecommitdiffstats
path: root/src/common/errors.rs
diff options
context:
space:
mode:
authorBrooks J Rady <b.j.rady@gmail.com>2021-03-23 16:26:34 +0000
committerBrooks J Rady <b.j.rady@gmail.com>2021-03-23 16:26:34 +0000
commita1e6171031dbf6f3285a99a84555a13f7ce88127 (patch)
tree037703347df34291a42a5fe20c8d3048772ae244 /src/common/errors.rs
parentClippy compels me to cull code (diff)
downloadsl0ppij-a1e6171031dbf6f3285a99a84555a13f7ce88127.tar.gz
sl0ppij-a1e6171031dbf6f3285a99a84555a13f7ce88127.tar.xz
sl0ppij-a1e6171031dbf6f3285a99a84555a13f7ce88127.zip
Rename references of 'draw' to 'render' for plugins
Diffstat (limited to 'src/common/errors.rs')
-rw-r--r--src/common/errors.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common/errors.rs b/src/common/errors.rs
index bd9907fa..b5b96342 100644
--- a/src/common/errors.rs
+++ b/src/common/errors.rs
@@ -278,7 +278,7 @@ use crate::wasm_vm::PluginInstruction;
#[derive(Debug, Clone, Copy, PartialEq)]
pub enum PluginContext {
Load,
- Draw,
+ Render,
Input,
GlobalInput,
Unload,
@@ -290,7 +290,7 @@ impl From<&PluginInstruction> for PluginContext {
fn from(plugin_instruction: &PluginInstruction) -> Self {
match *plugin_instruction {
PluginInstruction::Load(..) => PluginContext::Load,
- PluginInstruction::Draw(..) => PluginContext::Draw,
+ PluginInstruction::Render(..) => PluginContext::Render,
PluginInstruction::Input(..) => PluginContext::Input,
PluginInstruction::GlobalInput(_) => PluginContext::GlobalInput,
PluginInstruction::Unload(_) => PluginContext::Unload,