Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor statvfs module #729

Merged
merged 1 commit into from
Aug 11, 2017
Merged

Refactor statvfs module #729

merged 1 commit into from
Aug 11, 2017

Conversation

Susurrus
Copy link
Contributor

  • Use upstream libc FFI declarations and constants
  • Use more Rust-y interface of returning entire struct versus passing it as an
    argument to (f)statvfs.
  • Replace field accesses with accessor methods
  • Flatten vfs module into parent
  • Remove all non-libc-based interfaces for working with the statvfs struct

@asomers
Copy link
Member

asomers commented Aug 11, 2017

Everything here looks great to me. Nice improvement to the API too. But you need a CHANGELOG entry for the API change.

 * Use upstream libc FFI declarations and constants
 * Use more Rust-y interface of returning entire struct versus passing it as an
   argument to (f)statvfs.
 * Replace field accesses with accessor methods
 * Flatten vfs module into parent
 * Remove all non-libc-based interfaces for working with the statvfs struct
@Susurrus
Copy link
Contributor Author

bors r+ asomers

bors bot added a commit that referenced this pull request Aug 11, 2017
729: Refactor statvfs module r=Susurrus

 * Use upstream libc FFI declarations and constants
 * Use more Rust-y interface of returning entire struct versus passing it as an
   argument to (f)statvfs.
 * Replace field accesses with accessor methods
 * Flatten vfs module into parent
 * Remove all non-libc-based interfaces for working with the statvfs struct
@bors
Copy link
Contributor

bors bot commented Aug 11, 2017

@bors bors bot merged commit 6ae3f31 into nix-rust:master Aug 11, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants