diff options
author | Andreu Botella <andreu@andreubotella.com> | 2022-05-13 10:36:31 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-13 10:36:31 +0200 |
commit | 3e7afb8918fd0f6cedf839a7ebaae6aaee5e66ad (patch) | |
tree | 7fcc92da290889d3d2290f6e4902ac60685aae87 /ext/url/lib.rs | |
parent | 0ee76da07b12fba38962634e65853d73adf9d4c0 (diff) |
chore(runtime): Make some ops in ext and runtime infallible. (#14589)
Co-authored-by: Aaron O'Mullan <aaron.omullan@gmail.com>
Diffstat (limited to 'ext/url/lib.rs')
-rw-r--r-- | ext/url/lib.rs | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/ext/url/lib.rs b/ext/url/lib.rs index 394fd5902..be229cec5 100644 --- a/ext/url/lib.rs +++ b/ext/url/lib.rs @@ -160,13 +160,11 @@ pub fn op_url_parse_search_params( } #[op] -pub fn op_url_stringify_search_params( - args: Vec<(String, String)>, -) -> Result<String, AnyError> { +pub fn op_url_stringify_search_params(args: Vec<(String, String)>) -> String { let search = form_urlencoded::Serializer::new(String::new()) .extend_pairs(args) .finish(); - Ok(search) + search } pub fn get_declaration() -> PathBuf { |