Skip to content

Commit

Permalink
Fix thiserror breaking change
Browse files Browse the repository at this point in the history
  • Loading branch information
schneems committed Dec 13, 2024
1 parent b6b71b7 commit d03dead
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions buildpacks/ruby/src/target_id.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ const DISTRO_VERSION_STACK: &[(&str, &str, &str)] = &[

#[derive(Debug, thiserror::Error)]
pub(crate) enum TargetIdError {
#[error("Distro name and version '{0}-{1}' is not supported. Must be one of: {}", DISTRO_VERSION_STACK.iter().map(|&(name, version, _)| format!("'{name}-{version}'")).collect::<Vec<_>>().join(", "))]
#[error("Distro name and version '{0}-{1}' is not supported. Must be one of: {options}", options = DISTRO_VERSION_STACK.iter().map(|&(name, version, _)| format!("'{name}-{version}'")).collect::<Vec<_>>().join(", "))]
UnknownDistroNameVersionCombo(String, String),

#[error("Cannot convert stack name '{0}' into a target OS. Must be one of: {}", DISTRO_VERSION_STACK.iter().map(|&(_, _, stack)| format!("'{stack}'")).collect::<Vec<_>>().join(", "))]
#[error("Cannot convert stack name '{0}' into a target OS. Must be one of: {options}", options = DISTRO_VERSION_STACK.iter().map(|&(_, _, stack)| format!("'{stack}'")).collect::<Vec<_>>().join(", "))]
UnknownStack(String),
}

Expand Down

0 comments on commit d03dead

Please sign in to comment.