diff --git a/buildpacks/ruby/src/main.rs b/buildpacks/ruby/src/main.rs index 2f39edc9..0c7f696e 100644 --- a/buildpacks/ruby/src/main.rs +++ b/buildpacks/ruby/src/main.rs @@ -115,6 +115,7 @@ impl Buildpack for RubyBuildpack { } #[allow(clippy::too_many_lines)] + #[allow(deprecated)] fn build(&self, context: BuildContext) -> libcnb::Result { let mut logger = BuildLog::new(stdout()).buildpack_name("Heroku Ruby Buildpack"); let warn_later = WarnGuard::new(stdout()); @@ -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"), @@ -168,7 +168,6 @@ impl Buildpack for RubyBuildpack { }, }, )?; - #[allow(deprecated)] let env = ruby_layer.env.apply(Scope::Build, &env); (section.end_section(), env) }; @@ -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 { @@ -192,7 +190,6 @@ impl Buildpack for RubyBuildpack { }, )?; - #[allow(deprecated)] let env = download_bundler_layer.env.apply(Scope::Build, &env); (section.end_section(), env) @@ -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 {