Skip to content

Commit

Permalink
Remove unused PEP 621 error (#4057)
Browse files Browse the repository at this point in the history
  • Loading branch information
charliermarsh committed Jun 5, 2024
1 parent c97427d commit a017376
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions crates/uv-distribution/src/pyproject.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,25 +12,10 @@ use std::ops::Deref;
use glob::Pattern;
use pep440_rs::VersionSpecifiers;
use serde::{Deserialize, Serialize};
use thiserror::Error;
use url::Url;

use pep508_rs::Pep508Error;
use pypi_types::VerbatimParsedUrl;
use uv_normalize::{ExtraName, PackageName};

#[derive(Debug, Error)]
pub enum Pep621Error {
#[error(transparent)]
Pep508(#[from] Box<Pep508Error<VerbatimParsedUrl>>),
}

impl From<Pep508Error<VerbatimParsedUrl>> for Pep621Error {
fn from(error: Pep508Error<VerbatimParsedUrl>) -> Self {
Self::Pep508(Box::new(error))
}
}

/// A `pyproject.toml` as specified in PEP 517.
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "kebab-case")]
Expand Down

0 comments on commit a017376

Please sign in to comment.