Revert "Upgrade to Rust 1.82 toolchain" (#13810)

This commit is contained in:
Micha Reiser 2024-10-18 14:18:26 +02:00 committed by GitHub
parent ff72055558
commit 6d7da7bdbe
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
11 changed files with 51 additions and 55 deletions

View file

@ -6,7 +6,6 @@ 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;
@ -126,7 +125,6 @@ impl Server {
}
pub fn run(self) -> crate::Result<()> {
#[allow(deprecated)]
type PanicHook = Box<dyn Fn(&PanicInfo<'_>) + 'static + Sync + Send>;
struct RestorePanicHook {
hook: Option<PanicHook>,