Skip to content

Commit

Permalink
Merge pull request #9 from dommyrock/feature/windows_build_fix
Browse files Browse the repository at this point in the history
Windows missing QrSyncError Enum variant build fix
  • Loading branch information
crisidev authored Jul 31, 2023
2 parents 58a8ef5 + ad8771d commit 3d65e73
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/http.rs
Original file line number Diff line number Diff line change
Expand Up @@ -100,9 +100,8 @@ impl QrSyncHttp {
fn find_public_ip(&self) -> QrSyncResult<String> {
match &self.ip_address {
Some(ip_address) => Ok(ip_address.to_string()),
None => Err(QrSyncError::new(
"On windows the command-line option --ip-address is mandatory",
Some("ip-discovery"),
None => Err(QrSyncError::Error(
"On windows the command-line option --ip-address is mandatory".into()
)),
}
}
Expand Down

0 comments on commit 3d65e73

Please sign in to comment.