diff options
Diffstat (limited to 'ext/webstorage/lib.rs')
-rw-r--r-- | ext/webstorage/lib.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/webstorage/lib.rs b/ext/webstorage/lib.rs index 852ce229e..5e534a122 100644 --- a/ext/webstorage/lib.rs +++ b/ext/webstorage/lib.rs @@ -138,8 +138,8 @@ pub fn op_webstorage_key( #[op] pub fn op_webstorage_set( state: &mut OpState, - key: String, - value: String, + key: &str, + value: &str, persistent: bool, ) -> Result<(), AnyError> { let conn = get_webstorage(state, persistent)?; @@ -183,7 +183,7 @@ pub fn op_webstorage_get( #[op] pub fn op_webstorage_remove( state: &mut OpState, - key_name: String, + key_name: &str, persistent: bool, ) -> Result<(), AnyError> { let conn = get_webstorage(state, persistent)?; |