chiark / gitweb /
Make execute_and_log_request a method of Client.
authorSimon Tatham <anakin@pobox.com>
Sun, 4 Feb 2024 14:57:10 +0000 (14:57 +0000)
committerSimon Tatham <anakin@pobox.com>
Sun, 4 Feb 2024 14:58:35 +0000 (14:58 +0000)
commitcc9258b50974108d03bbe03e1c5ca2b2e4d5766c
tree7a9fc5a0504860d011e0d602e79253c721b6aa45
parentd2265d98e79714dfba37c72d8234d694127bfb73
Make execute_and_log_request a method of Client.

All the calls to it happen inside methods of Client, so there's no
reason this is difficult. The only reason it was a separate function
in the first place was so that the old version of login.rs could use
it, which did login outside the full TUI via a separate network
interaction module. But now all the functions of that module have been
moved into Client, execute_and_log_request is fine as it is.

It also doesn't need to be pub any more.
src/client.rs