Skip to content
This repository has been archived by the owner on Jun 8, 2021. It is now read-only.

Commit

Permalink
Merge pull request #115 from EPashkin/fix_dox_for_windows
Browse files Browse the repository at this point in the history
Fix build docs for non unix
  • Loading branch information
GuillaumeGomez committed Apr 24, 2018
2 parents a0c3a7a + c0256ae commit 3579dd9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/unix_socket_address.rs
Expand Up @@ -78,7 +78,10 @@ impl<O: IsA<UnixSocketAddress> + IsA<glib::object::Object>> UnixSocketAddressExt
};
match self.get_address_type() {
UnixSocketAddressType::Anonymous => Some(Anonymous),
#[cfg(not(dox))]
UnixSocketAddressType::Path => Some(Path(path::Path::new(OsStr::from_bytes(path)))),
#[cfg(dox)]
UnixSocketAddressType::Path => unreachable!(),
UnixSocketAddressType::Abstract => Some(Abstract(path)),
UnixSocketAddressType::AbstractPadded => Some(AbstractPadded(path)),
UnixSocketAddressType::Invalid | UnixSocketAddressType::__Unknown(_) => None,
Expand Down

0 comments on commit 3579dd9

Please sign in to comment.