chore: Bump Rust edition to 2024 (#27800)

Follow-up to https://github.com/zed-industries/zed/pull/27791

Release Notes:

- N/A
This commit is contained in:
Piotr Osiewicz 2025-03-31 20:55:27 +02:00 committed by GitHub
parent d50905e000
commit dc64ec9cc8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
802 changed files with 3775 additions and 3662 deletions

View file

@ -1,6 +1,6 @@
use std::fs;
use zed::settings::LspSettings;
use zed_extension_api::{self as zed, serde_json, LanguageServerId, Result};
use zed_extension_api::{self as zed, LanguageServerId, Result, serde_json};
struct GlslExtension {
cached_binary_path: Option<String>,

View file

@ -1,6 +1,6 @@
use std::{env, fs};
use zed::settings::LspSettings;
use zed_extension_api::{self as zed, serde_json::json, LanguageServerId, Result};
use zed_extension_api::{self as zed, LanguageServerId, Result, serde_json::json};
const BINARY_NAME: &str = "vscode-html-language-server";
const SERVER_PATH: &str =

View file

@ -3,7 +3,7 @@ use zed::{
http_client::HttpRequest,
serde_json::{self, json},
};
use zed_extension_api::{self as zed, http_client::RedirectPolicy, Result};
use zed_extension_api::{self as zed, Result, http_client::RedirectPolicy};
struct Perplexity;

View file

@ -1,4 +1,4 @@
use zed_extension_api::{self as zed, settings::LspSettings, Result};
use zed_extension_api::{self as zed, Result, settings::LspSettings};
const PROTOBUF_LANGUAGE_SERVER_NAME: &str = "protobuf-language-server";

View file

@ -1,6 +1,6 @@
use std::fs;
use zed::LanguageServerId;
use zed_extension_api::{self as zed, settings::LspSettings, Result};
use zed_extension_api::{self as zed, Result, settings::LspSettings};
struct RuffBinary {
path: String,

View file

@ -1,7 +1,7 @@
use serde_json::json;
use std::fs;
use zed::LanguageServerId;
use zed_extension_api::{self as zed, settings::LspSettings, Result};
use zed_extension_api::{self as zed, Result, settings::LspSettings};
struct SnippetExtension {
cached_binary_path: Option<String>,