-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: ConnectionHandle::release to ignore warning
As described in #43, you now get a warning if you don't use the ConnectionHandle that is returned by connecting to a signal. But as @lemirep noted, this can be annoying without a proper way to silence the warning. This commit adds a `release` function that can simply be used to ignore the nodiscard warning intentionally. Fix #43
- Loading branch information
1 parent
d21bc12
commit 076eeed
Showing
3 changed files
with
28 additions
and
1 deletion.
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
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