Skip to content

Commit f1890a8

Browse files
committed
fix ScriptingInstance notify warning/error
1 parent eb5683e commit f1890a8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

rust/src/scriptingprovider.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ impl ScriptingInstance {
193193
pub fn notify_warning<S: BnStrCompatible>(&self, text: S) {
194194
let text = text.into_bytes_with_nul();
195195
unsafe {
196-
BNNotifyOutputForScriptingInstance(
196+
BNNotifyWarningForScriptingInstance(
197197
self.as_raw(),
198198
text.as_ref().as_ptr() as *const ffi::c_char,
199199
)
@@ -203,7 +203,7 @@ impl ScriptingInstance {
203203
pub fn notify_error<S: BnStrCompatible>(&self, text: S) {
204204
let text = text.into_bytes_with_nul();
205205
unsafe {
206-
BNNotifyOutputForScriptingInstance(
206+
BNNotifyErrorForScriptingInstance(
207207
self.as_raw(),
208208
text.as_ref().as_ptr() as *const ffi::c_char,
209209
)

0 commit comments

Comments
 (0)