mirror of
https://github.com/astral-sh/ruff.git
synced 2025-10-01 06:11:43 +00:00
Upgrade to Rust 1.82 toolchain (#13808)
This commit is contained in:
parent
4ecfe95295
commit
ff72055558
11 changed files with 54 additions and 50 deletions
|
@ -1,6 +1,7 @@
|
|||
//! Scheduling, I/O, and API endpoints.
|
||||
|
||||
use std::num::NonZeroUsize;
|
||||
#[allow(deprecated)]
|
||||
use std::panic::PanicInfo;
|
||||
|
||||
use lsp_server::Message;
|
||||
|
@ -119,6 +120,7 @@ impl Server {
|
|||
}
|
||||
|
||||
pub(crate) fn run(self) -> crate::Result<()> {
|
||||
#[allow(deprecated)]
|
||||
type PanicHook = Box<dyn Fn(&PanicInfo<'_>) + 'static + Sync + Send>;
|
||||
struct RestorePanicHook {
|
||||
hook: Option<PanicHook>,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue