From 2c1351b8c00e18585eddbf12376ae931245ad9af Mon Sep 17 00:00:00 2001 From: Mikail Bagishov Date: Wed, 12 Feb 2020 23:25:08 +0300 Subject: [PATCH] Make FsType's raw type public --- CHANGELOG.md | 2 ++ src/sys/statfs.rs | 10 +++++----- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8e7a79307b..51536f5d52 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,8 @@ This project adheres to [Semantic Versioning](http://semver.org/). where it's available, and clears the environment of all variables via `std::env::vars` and `std::env::remove_var` on others. (#[1185](https://github.com/nix-rust/nix/pull/1185)) +- `FsType` inner value made public. + (#[1187](https://github.com/nix-rust/nix/pull/1187)) ### Changed ### Fixed ### Removed diff --git a/src/sys/statfs.rs b/src/sys/statfs.rs index f463400eae..942b9f8da3 100644 --- a/src/sys/statfs.rs +++ b/src/sys/statfs.rs @@ -20,19 +20,19 @@ pub struct Statfs(libc::statfs); #[cfg(target_os = "freebsd")] #[derive(Eq, Copy, Clone, PartialEq, Debug)] -pub struct FsType(u32); +pub struct FsType(pub u32); #[cfg(target_os = "android")] #[derive(Eq, Copy, Clone, PartialEq, Debug)] -pub struct FsType(libc::c_ulong); +pub struct FsType(pub libc::c_ulong); #[cfg(all(target_os = "linux", target_arch = "s390x"))] #[derive(Eq, Copy, Clone, PartialEq, Debug)] -pub struct FsType(u32); +pub struct FsType(pub u32); #[cfg(all(target_os = "linux", target_env = "musl"))] #[derive(Eq, Copy, Clone, PartialEq, Debug)] -pub struct FsType(libc::c_ulong); +pub struct FsType(pub libc::c_ulong); #[cfg(all(target_os = "linux", not(any(target_arch = "s390x", target_env = "musl"))))] #[derive(Eq, Copy, Clone, PartialEq, Debug)] -pub struct FsType(libc::c_long); +pub struct FsType(pub libc::c_long); #[cfg(all(target_os = "linux", not(target_env = "musl"), not(target_arch = "s390x")))] pub const ADFS_SUPER_MAGIC: FsType = FsType(libc::ADFS_SUPER_MAGIC);