@@ -73,8 +73,8 @@ pub fn plugin_fn(
7373 }
7474
7575 let output = match inner( ) {
76- Ok ( x) => x,
77- Err ( rc) => {
76+ core :: result :: Result :: Ok ( x) => x,
77+ core :: result :: Result :: Err ( rc) => {
7878 let err = format!( "{:?}" , rc. 0 ) ;
7979 let mut mem = extism_pdk:: Memory :: from_bytes( & err) . unwrap( ) ;
8080 unsafe {
@@ -98,8 +98,8 @@ pub fn plugin_fn(
9898
9999 let input = extism_pdk:: unwrap!( extism_pdk:: input( ) ) ;
100100 let output = match inner( input) {
101- Ok ( x) => x,
102- Err ( rc) => {
101+ core :: result :: Result :: Ok ( x) => x,
102+ core :: result :: Result :: Err ( rc) => {
103103 let err = format!( "{:?}" , rc. 0 ) ;
104104 let mut mem = extism_pdk:: Memory :: from_bytes( & err) . unwrap( ) ;
105105 unsafe {
@@ -238,10 +238,10 @@ pub fn shared_fn(
238238
239239 let r = || inner( #( #raw_args, ) * ) ;
240240 match r( ) . and_then( |x| extism_pdk:: Memory :: new( & x) ) {
241- Ok ( mem) => {
241+ core :: result :: Result :: Ok ( mem) => {
242242 mem. offset( )
243243 } ,
244- Err ( rc) => {
244+ core :: result :: Result :: Err ( rc) => {
245245 panic!( "{}" , rc. to_string( ) ) ;
246246 }
247247 }
@@ -330,7 +330,7 @@ pub fn host_fn(
330330
331331 #impl_block
332332
333- #vis unsafe fn #name #generics ( #original_inputs) -> Result <#output, extism_pdk:: Error > {
333+ #vis unsafe fn #name #generics ( #original_inputs) -> core :: result :: Result <#output, extism_pdk:: Error > {
334334 let res = extism_pdk:: Memory :: from( #impl_name( #( #into_inputs) , * ) ) ;
335335 <#output as extism_pdk:: FromBytes >:: from_bytes( & res. to_vec( ) )
336336 }
@@ -341,9 +341,9 @@ pub fn host_fn(
341341
342342 #impl_block
343343
344- #vis unsafe fn #name #generics ( #original_inputs) -> Result <#output, extism_pdk:: Error > {
344+ #vis unsafe fn #name #generics ( #original_inputs) -> core :: result :: Result <#output, extism_pdk:: Error > {
345345 let res = #impl_name( #( #into_inputs) , * ) ;
346- Ok ( res)
346+ core :: result :: Result :: Ok ( res)
347347 }
348348 } ;
349349 }
0 commit comments