mirror of
https://github.com/bootandy/dust.git
synced 2026-06-08 11:29:05 +03:00
[PR #61] [MERGED] Fix get_metadata on windows #281
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/bootandy/dust/pull/61
Author: @lespea
Created: 1/21/2020
Status: ✅ Merged
Merged: 1/22/2020
Merged by: @bootandy
Base:
master← Head:fixWinBreaks📝 Commits (1)
0c7b05fFix get_metadata on windows📊 Changes
3 files changed (+31 additions, -14 deletions)
View changed files
📝
Cargo.lock(+10 -0)📝
Cargo.toml(+3 -0)📝
src/utils/platform.rs(+18 -14)📄 Description
The MetadataExt functions are nightly-only right now so we need to call
the windows api ourselves to get the device number. The winapi_util
package has a nice wrapper to do this for us.
The get_device function doesn't appear to be used anywhere so I removed
it.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.