-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refctor!: mark functions as unsafe and document its safety (#227)
* refctor!: mark functions as unsafe and document its safety * fix examples * fix doctests * fix example in README.md
- Loading branch information
Showing
12 changed files
with
172 additions
and
109 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
--- | ||
"muda": "patch" | ||
"muda": "minor" | ||
--- | ||
|
||
**Breaking change** Renamed the `acccelerator` method (which has an extra `c`) on `MenuItemBuilder`, `CheckMenuItemBuilder`, and `IconMenuItemBuilder` to `accelerator`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
--- | ||
"muda": "minor" | ||
--- | ||
|
||
**Breaking change** Marked a few methods with `unsafe` to better represent the safety guarantees: | ||
|
||
- `ContextMenu::show_context_menu_for_hwnd` | ||
- `ContextMenu::attach_menu_subclass_for_hwnd` | ||
- `ContextMenu::detach_menu_subclass_from_hwnd` | ||
- `Menu::init_for_hwnd` | ||
- `Menu::init_for_hwnd_with_theme` | ||
- `Menu::set_theme_for_hwnd` | ||
- `Menu::remove_for_hwnd` | ||
- `Menu::hide_for_hwnd` | ||
- `Menu::show_for_hwnd` | ||
- `Menu::is_visible_on_hwnd` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,5 @@ | ||
--- | ||
"muda": patch | ||
"muda": minor | ||
--- | ||
|
||
Use `objc2` internally, leading to much better memory safety. | ||
|
||
The crate will panic now if used from a thread that is not the main thread. | ||
Use `objc2` internally, leading to much better memory safety. The crate will panic now if used from a thread that is not the main thread. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.