Skip to content

Commit d7a9eb5

Browse files
author
Nandan B N
committed
fix ordering of methods
Signed-off-by: Nandan B N <[email protected]>
1 parent 9536299 commit d7a9eb5

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/hostcalls.rs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -288,14 +288,6 @@ extern "C" {
288288
) -> Status;
289289
}
290290

291-
extern "C" {
292-
fn proxy_remove_header_map_value(
293-
map_type: MapType,
294-
key_data: *const u8,
295-
key_size: usize,
296-
) -> Status;
297-
}
298-
299291
pub fn set_map_value(map_type: MapType, key: &str, value: Option<&str>) -> Result<(), Status> {
300292
unsafe {
301293
if let Some(value) = value {
@@ -318,6 +310,14 @@ pub fn set_map_value(map_type: MapType, key: &str, value: Option<&str>) -> Resul
318310
}
319311
}
320312

313+
extern "C" {
314+
fn proxy_remove_header_map_value(
315+
map_type: MapType,
316+
key_data: *const u8,
317+
key_size: usize,
318+
) -> Status;
319+
}
320+
321321
pub fn remove_map_value(map_type: MapType, key: &str) -> Result<(), Status> {
322322
unsafe {
323323
match proxy_remove_header_map_value(map_type, key.as_ptr(), key.len()) {

0 commit comments

Comments
 (0)