Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/remote.rs
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ impl<'repo> Remote<'repo> {
}

/// Check whether the remote is connected
pub fn connected(&mut self) -> bool {
pub fn connected(&self) -> bool {
unsafe { raw::git_remote_connected(self.raw) == 1 }
}

Expand Down Expand Up @@ -759,7 +759,7 @@ impl<'cb> Binding for PushOptions<'cb> {

impl<'repo, 'connection, 'cb> RemoteConnection<'repo, 'connection, 'cb> {
/// Check whether the remote is (still) connected
pub fn connected(&mut self) -> bool {
pub fn connected(&self) -> bool {
self.remote.connected()
}

Expand Down
Loading