mirror of
https://github.com/zed-industries/zed.git
synced 2026-11-19 06:59:22 +01:00
http_client: Remove anyhow reexports (#66430)
## Summary What problem does this solve, how, and why does this change matter? Use "Closes #123" for each issue resolved. Include artifacts produced when testing: before/after screenshots, GIFs, videos, benchmarks. ## Testing Manually test your changes; report results, mention platforms if relevant. How can reviewers test this easily? Include setup and steps. ## Self-review - [ ] I've reviewed my diff for quality, security, reliability, and performance. - [ ] UI changes follow the [checklist](https://zed.dev/docs/development/ui-checklist). - [ ] Tests cover the new or changed behavior. Release Notes: - [GPUI] http_client no longer re-exports anyhow types. --------- Co-authored-by: Amp <amp@ampcode.com>
This commit is contained in:
Generated
-1
@@ -9555,7 +9555,6 @@ dependencies = [
|
||||
"futures 0.3.34",
|
||||
"gpui",
|
||||
"gpui_util",
|
||||
"http_client",
|
||||
"icons",
|
||||
"image",
|
||||
"language_model_core",
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
use std::path::Path;
|
||||
|
||||
use anyhow::anyhow;
|
||||
use fs::Fs;
|
||||
use gpui::AppContext;
|
||||
use gpui::Entity;
|
||||
use gpui::Task;
|
||||
use gpui::WeakEntity;
|
||||
use http_client::anyhow;
|
||||
use picker::Picker;
|
||||
use picker::PickerDelegate;
|
||||
use project::ProjectEnvironment;
|
||||
@@ -1684,7 +1684,8 @@ async fn get_ghcr_features(
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use http_client::{FakeHttpClient, anyhow};
|
||||
use anyhow::anyhow;
|
||||
use http_client::FakeHttpClient;
|
||||
|
||||
use crate::{
|
||||
DevContainerTemplatesResponse, devcontainer_templates_repository,
|
||||
|
||||
@@ -197,9 +197,10 @@ where
|
||||
mod test {
|
||||
use std::{path::PathBuf, sync::Arc};
|
||||
|
||||
use anyhow::anyhow;
|
||||
use fs::{FakeFs, Fs};
|
||||
use gpui::TestAppContext;
|
||||
use http_client::{FakeHttpClient, anyhow};
|
||||
use http_client::FakeHttpClient;
|
||||
use serde::Deserialize;
|
||||
|
||||
use crate::oci::{
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
mod async_body;
|
||||
|
||||
pub use anyhow::{Result, anyhow};
|
||||
use anyhow::Result;
|
||||
pub use async_body::{AsyncBody, Inner, Json};
|
||||
pub use http::{self, Method, Request, Response, StatusCode, Uri, request::Builder};
|
||||
use http::{HeaderName, HeaderValue};
|
||||
|
||||
@@ -25,7 +25,6 @@ env_var.workspace = true
|
||||
futures.workspace = true
|
||||
gpui.workspace = true
|
||||
gpui_util.workspace = true
|
||||
http_client.workspace = true
|
||||
icons.workspace = true
|
||||
image.workspace = true
|
||||
language_model_core.workspace = true
|
||||
|
||||
@@ -4,10 +4,9 @@ use crate::{
|
||||
LanguageModelName, LanguageModelProvider, LanguageModelProviderId, LanguageModelProviderName,
|
||||
LanguageModelProviderState, LanguageModelRequest,
|
||||
};
|
||||
use anyhow::anyhow;
|
||||
use anyhow::{Result, anyhow};
|
||||
use futures::{FutureExt, channel::mpsc, future::BoxFuture, stream::StreamExt};
|
||||
use gpui::{App, AsyncApp, Entity, Task};
|
||||
use http_client::Result;
|
||||
use parking_lot::Mutex;
|
||||
use std::collections::VecDeque;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user