From 3e7afb8918fd0f6cedf839a7ebaae6aaee5e66ad Mon Sep 17 00:00:00 2001 From: Andreu Botella Date: Fri, 13 May 2022 10:36:31 +0200 Subject: chore(runtime): Make some ops in ext and runtime infallible. (#14589) Co-authored-by: Aaron O'Mullan --- ext/url/lib.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'ext/url/lib.rs') 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 { +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 { -- cgit v1.2.3