ssh-remoting: Tidy up the code a bit after #18094 (#18102)

Release Notes:

- N/A
This commit is contained in:
Stanislav Alekseev 2024-09-20 06:36:50 +03:00 committed by GitHub
parent 15b4130fa5
commit 8103ac12bf
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 9 additions and 8 deletions

View file

@ -28,7 +28,7 @@ pub trait ProtoClient: Send + Sync {
fn message_handler_set(&self) -> &parking_lot::Mutex<ProtoMessageHandlerSet>;
fn goes_via_collab(&self) -> bool;
fn is_via_collab(&self) -> bool;
}
#[derive(Default)]
@ -141,8 +141,8 @@ impl AnyProtoClient {
Self(client)
}
pub fn goes_via_collab(&self) -> bool {
self.0.goes_via_collab()
pub fn is_via_collab(&self) -> bool {
self.0.is_via_collab()
}
pub fn request<T: RequestMessage>(