File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -84,7 +84,7 @@ impl Script {
84
84
fn new ( code : & Bound < PyAny > ) -> PyResult < Self > {
85
85
let hash = if let Ok ( code_str) = code. extract :: < String > ( ) {
86
86
glide_core:: scripts_container:: add_script ( code_str. as_bytes ( ) )
87
- } else if let Ok ( code_bytes) = code. extract :: < & PyBytes > ( ) {
87
+ } else if let Ok ( code_bytes) = code. extract :: < Bound < PyBytes > > ( ) {
88
88
glide_core:: scripts_container:: add_script ( code_bytes. as_bytes ( ) )
89
89
} else {
90
90
return Err ( PyTypeError :: new_err (
@@ -267,7 +267,7 @@ fn glide(_py: Python, m: &Bound<PyModule>) -> PyResult<()> {
267
267
}
268
268
269
269
#[ pyfunction]
270
- pub fn create_leaked_bytes_vec ( args_vec : Vec < & PyBytes > ) -> usize {
270
+ pub fn create_leaked_bytes_vec ( args_vec : Vec < Bound < PyBytes > > ) -> usize {
271
271
// Convert the bytes vec -> Bytes vector
272
272
let bytes_vec: Vec < Bytes > = args_vec
273
273
. iter ( )
You can’t perform that action at this time.
0 commit comments