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:
Piotr Osiewicz
2026-11-02 15:51:56 +00:00
committed by GitHub
parent 4ec98df500
commit f73feed9de
6 changed files with 7 additions and 8 deletions
Generated
-1
View File
@@ -9555,7 +9555,6 @@ dependencies = [
"futures 0.3.34",
"gpui",
"gpui_util",
"http_client",
"icons",
"image",
"language_model_core",
+3 -2
View File
@@ -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,
+2 -1
View File
@@ -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 -1
View File
@@ -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};
-1
View File
@@ -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
+1 -2
View File
@@ -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;