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:
parent
d50905e000
commit
dc64ec9cc8
802 changed files with 3775 additions and 3662 deletions
|
@ -3,7 +3,7 @@ use crate::{
|
|||
LanguageModelName, LanguageModelProvider, LanguageModelProviderId, LanguageModelProviderName,
|
||||
LanguageModelProviderState, LanguageModelRequest,
|
||||
};
|
||||
use futures::{channel::mpsc, future::BoxFuture, stream::BoxStream, FutureExt, StreamExt};
|
||||
use futures::{FutureExt, StreamExt, channel::mpsc, future::BoxFuture, stream::BoxStream};
|
||||
use gpui::{AnyView, App, AsyncApp, Entity, Task, Window};
|
||||
use http_client::Result;
|
||||
use parking_lot::Mutex;
|
||||
|
|
|
@ -11,13 +11,13 @@ pub mod fake_provider;
|
|||
use anyhow::Result;
|
||||
use client::Client;
|
||||
use futures::FutureExt;
|
||||
use futures::{future::BoxFuture, stream::BoxStream, StreamExt, TryStreamExt as _};
|
||||
use futures::{StreamExt, TryStreamExt as _, future::BoxFuture, stream::BoxStream};
|
||||
use gpui::{AnyElement, AnyView, App, AsyncApp, SharedString, Task, Window};
|
||||
use icons::IconName;
|
||||
use parking_lot::Mutex;
|
||||
use proto::Plan;
|
||||
use schemars::JsonSchema;
|
||||
use serde::{de::DeserializeOwned, Deserialize, Serialize};
|
||||
use serde::{Deserialize, Serialize, de::DeserializeOwned};
|
||||
use std::fmt;
|
||||
use std::ops::{Add, Sub};
|
||||
use std::{future::Future, sync::Arc};
|
||||
|
|
|
@ -3,7 +3,7 @@ use crate::{
|
|||
LanguageModelProviderState,
|
||||
};
|
||||
use collections::BTreeMap;
|
||||
use gpui::{prelude::*, App, Context, Entity, EventEmitter, Global};
|
||||
use gpui::{App, Context, Entity, EventEmitter, Global, prelude::*};
|
||||
use std::sync::Arc;
|
||||
|
||||
pub fn init(cx: &mut App) {
|
||||
|
|
|
@ -5,10 +5,10 @@ use crate::role::Role;
|
|||
use crate::{LanguageModelToolUse, LanguageModelToolUseId};
|
||||
use base64::write::EncoderWriter;
|
||||
use gpui::{
|
||||
point, px, size, App, AppContext as _, DevicePixels, Image, ObjectFit, RenderImage,
|
||||
SharedString, Size, Task,
|
||||
App, AppContext as _, DevicePixels, Image, ObjectFit, RenderImage, SharedString, Size, Task,
|
||||
point, px, size,
|
||||
};
|
||||
use image::{codecs::png::PngEncoder, imageops::resize, DynamicImage, ImageDecoder};
|
||||
use image::{DynamicImage, ImageDecoder, codecs::png::PngEncoder, imageops::resize};
|
||||
use serde::{Deserialize, Serialize};
|
||||
use util::ResultExt;
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
use anthropic::{AnthropicError, ANTHROPIC_API_URL};
|
||||
use anyhow::{anyhow, Context as _, Result};
|
||||
use anthropic::{ANTHROPIC_API_URL, AnthropicError};
|
||||
use anyhow::{Context as _, Result, anyhow};
|
||||
use client::telemetry::Telemetry;
|
||||
use gpui::BackgroundExecutor;
|
||||
use http_client::{AsyncBody, HttpClient, Method, Request as HttpRequest};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue