mirror of
https://github.com/astral-sh/ruff
synced 2026-01-20 21:10:48 -05:00
Upgrade to Rust 1.82 toolchain (#13808)
This commit is contained in:
@@ -6,6 +6,7 @@ use lsp_types::InitializeParams;
|
||||
use lsp_types::WorkspaceFolder;
|
||||
use std::num::NonZeroUsize;
|
||||
use std::ops::Deref;
|
||||
#[allow(deprecated)]
|
||||
use std::panic::PanicInfo;
|
||||
use std::str::FromStr;
|
||||
use thiserror::Error;
|
||||
@@ -125,6 +126,7 @@ impl Server {
|
||||
}
|
||||
|
||||
pub fn run(self) -> crate::Result<()> {
|
||||
#[allow(deprecated)]
|
||||
type PanicHook = Box<dyn Fn(&PanicInfo<'_>) + 'static + Sync + Send>;
|
||||
struct RestorePanicHook {
|
||||
hook: Option<PanicHook>,
|
||||
|
||||
Reference in New Issue
Block a user