Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
conduwuit
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
🥺
conduwuit
Commits
3872ae80
Commit
3872ae80
authored
9 months ago
by
Jason Volk
Browse files
Options
Downloads
Patches
Plain Diff
fix PanicInfo deprecation
Signed-off-by:
Jason Volk
<
jason@zemos.net
>
parent
0923b6f4
No related branches found
No related tags found
1 merge request
!467
Misc fixes
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/core/debug.rs
+3
-2
3 additions, 2 deletions
src/core/debug.rs
with
3 additions
and
2 deletions
src/core/debug.rs
+
3
−
2
View file @
3872ae80
#![allow(dead_code)]
// this is a developer's toolbox
use
std
::
{
panic
,
panic
::
PanicInfo
}
;
use
std
::
panic
;
/// Export all of the ancillary tools from here as well.
pub
use
crate
::
utils
::
debug
::
*
;
...
...
@@ -59,7 +59,8 @@ pub fn set_panic_trap() {
}
#[inline(always)]
fn
panic_handler
(
info
:
&
PanicInfo
<
'_
>
,
next
:
&
dyn
Fn
(
&
PanicInfo
<
'_
>
))
{
#[allow(deprecated_in_future)]
fn
panic_handler
(
info
:
&
panic
::
PanicInfo
<
'_
>
,
next
:
&
dyn
Fn
(
&
panic
::
PanicInfo
<
'_
>
))
{
trap
();
next
(
info
);
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment