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 b1c2427
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 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 @@ -191,8 +189,6 @@ impl Buildpack for RubyBuildpack {
_section_logger: section.as_ref(),
},
)?;

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

(section.end_section(), env)
Expand All @@ -201,7 +197,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 Expand Up @@ -231,7 +226,6 @@ impl Buildpack for RubyBuildpack {
},
},
)?;
#[allow(deprecated)]
let env = bundle_install_layer.env.apply(Scope::Build, &env);
(section.end_section(), env)
};
Expand Down

0 comments on commit b1c2427

Please sign in to comment.