Skip to content

Commit

Permalink
Fewer deprecations
Browse files Browse the repository at this point in the history
  • Loading branch information
schneems committed Sep 21, 2024
1 parent 0b32324 commit 7b7fee7
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions buildpacks/ruby/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ impl Buildpack for RubyBuildpack {
}

#[allow(clippy::too_many_lines)]
#[allow(deprecated)]
fn build(&self, context: BuildContext<Self>) -> libcnb::Result<BuildResult, Self::Error> {
let mut logger = BuildLog::new(stdout()).buildpack_name("Heroku Ruby Buildpack");
let warn_later = WarnGuard::new(stdout());
Expand Down Expand Up @@ -154,7 +155,6 @@ impl Buildpack for RubyBuildpack {
fmt::value(ruby_version.to_string()),
fmt::value(gemfile_lock.ruby_source())
));
#[allow(deprecated)]
let ruby_layer = context //
.handle_layer(
layer_name!("ruby"),
Expand All @@ -168,7 +168,6 @@ impl Buildpack for RubyBuildpack {
},
},
)?;
#[allow(deprecated)]
let env = ruby_layer.env.apply(Scope::Build, &env);
(section.end_section(), env)
};
Expand All @@ -180,7 +179,6 @@ impl Buildpack for RubyBuildpack {
fmt::value(bundler_version.to_string()),
fmt::value(gemfile_lock.bundler_source())
));
#[allow(deprecated)]
let download_bundler_layer = context.handle_layer(
layer_name!("bundler"),
BundleDownloadLayer {
Expand All @@ -192,7 +190,6 @@ impl Buildpack for RubyBuildpack {
},
)?;

#[allow(deprecated)]
let env = download_bundler_layer.env.apply(Scope::Build, &env);

(section.end_section(), env)
Expand All @@ -201,7 +198,6 @@ impl Buildpack for RubyBuildpack {
// ## Bundle install
(logger, env) = {
let section = logger.section("Bundle install");
#[allow(deprecated)]
let bundle_install_layer = context.handle_layer(
layer_name!("gems"),
BundleInstallLayer {
Expand Down

0 comments on commit 7b7fee7

Please sign in to comment.