don't return (buffer, searchList) tuple when building search list, but only return search list itself. (No point returning buffer as it is never modified or moved.)

This commit is contained in:
2025-08-07 14:40:14 +01:00
parent da2d2f1b55
commit 752bb4d00f
2 changed files with 3 additions and 4 deletions

View File

@@ -6,7 +6,7 @@ struct
fun loop (searchMailbox, inputMailbox) =
let
val (buffer, searchString) = Mailbox.recv searchMailbox
val (_, searchList) = SearchList.build (buffer, searchString)
val searchList = SearchList.build (buffer, searchString)
val () = Mailbox.send (inputMailbox, InputMsg.WITH_SEARCH_LIST searchList)
in
loop (searchMailbox, inputMailbox)