Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

toast: add rust 1.83.0 build patch #199602

Merged
merged 1 commit into from
Nov 30, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 23 additions & 2 deletions Formula/t/toast.rb
Original file line number Diff line number Diff line change
@@ -1,11 +1,17 @@
class Toast < Formula
desc "Tool for running tasks in containers"
homepage "https://github.com/stepchowfun/toast"
url "https://github.com/stepchowfun/toast/archive/refs/tags/v0.47.6.tar.gz"
sha256 "6cda205ec551232106a05a94b6a71d9eb90e4d3bf1541e629062c65257aa3e6a"
license "MIT"
head "https://github.com/stepchowfun/toast.git", branch: "main"

stable do
url "https://github.com/stepchowfun/toast/archive/refs/tags/v0.47.6.tar.gz"
sha256 "6cda205ec551232106a05a94b6a71d9eb90e4d3bf1541e629062c65257aa3e6a"

# eliminate needless lifetimes, upstream pr ref, https://github.com/stepchowfun/toast/pull/524
patch :DATA
end

bottle do
sha256 cellar: :any_skip_relocation, arm64_sequoia: "32d64e56a321339f6c83f3df40c5078da1b9327bdda1db3c96a1f0d59fb2cb27"
sha256 cellar: :any_skip_relocation, arm64_sonoma: "e1dad05bd1a76d6196771c60a29cc3c2256daa2aefd8d0876f24456e5d53a920"
Expand Down Expand Up @@ -37,3 +43,18 @@ def install
assert_match "homebrew_test", shell_output("#{bin}/toast --list")
end
end

__END__
diff --git a/src/failure.rs b/src/failure.rs
index bb01653..05ab70b 100644
--- a/src/failure.rs
+++ b/src/failure.rs
@@ -24,7 +24,7 @@ impl fmt::Display for Failure {
}

impl error::Error for Failure {
- fn source<'a>(&'a self) -> Option<&(dyn error::Error + 'static)> {
+ fn source(&self) -> Option<&(dyn error::Error + 'static)> {
match self {
Self::System(_, source) => source.as_ref().map(|e| &**e),
Self::User(_, source) => source.as_ref().map(|e| &**e),
Loading