Auto merge of #121265 - klensy:bump-18-02-24, r=Mark-Simulacrum
bump some deps First commit dedupes darling* crates and remove one more syn 1.* dep Second one bumps windows crate to 0.52
This commit is contained in:
commit
c9c83cca51
13 changed files with 37 additions and 72 deletions
|
@ -30,7 +30,7 @@ unicode-width = "0.1.4"
|
|||
# tidy-alphabetical-end
|
||||
|
||||
[target.'cfg(windows)'.dependencies.windows]
|
||||
version = "0.48.0"
|
||||
version = "0.52.0"
|
||||
features = [
|
||||
"Win32_Foundation",
|
||||
"Win32_Security",
|
||||
|
|
|
@ -27,7 +27,8 @@ pub fn acquire_global_lock(name: &str) -> Box<dyn Any> {
|
|||
impl Drop for Handle {
|
||||
fn drop(&mut self) {
|
||||
unsafe {
|
||||
CloseHandle(self.0);
|
||||
// FIXME can panic here
|
||||
CloseHandle(self.0).unwrap();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -37,7 +38,8 @@ pub fn acquire_global_lock(name: &str) -> Box<dyn Any> {
|
|||
impl Drop for Guard {
|
||||
fn drop(&mut self) {
|
||||
unsafe {
|
||||
ReleaseMutex((self.0).0);
|
||||
// FIXME can panic here
|
||||
ReleaseMutex((self.0).0).unwrap();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue