You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pekko.apache.org by he...@apache.org on 2023/05/27 09:05:43 UTC
[incubator-pekko-http] branch main updated: Unwrap single string interpolation syntax
This is an automated email from the ASF dual-hosted git repository.
hepin pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-pekko-http.git
The following commit(s) were added to refs/heads/main by this push:
new 8093f0107 Unwrap single string interpolation syntax
8093f0107 is described below
commit 8093f01074103e542f12c228c3720f9f9a06a53e
Author: Matthew de Detrich <ma...@aiven.io>
AuthorDate: Sat May 27 10:43:06 2023 +0200
Unwrap single string interpolation syntax
---
.../scala/docs/http/scaladsl/server/RejectionHandlerExamplesSpec.scala | 2 +-
.../http/scaladsl/server/directives/SchemeDirectivesExamplesSpec.scala | 2 +-
project/CopyrightHeader.scala | 2 +-
project/Dependencies.scala | 2 +-
4 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/docs/src/test/scala/docs/http/scaladsl/server/RejectionHandlerExamplesSpec.scala b/docs/src/test/scala/docs/http/scaladsl/server/RejectionHandlerExamplesSpec.scala
index 1baeb7782..e71ba7b7b 100644
--- a/docs/src/test/scala/docs/http/scaladsl/server/RejectionHandlerExamplesSpec.scala
+++ b/docs/src/test/scala/docs/http/scaladsl/server/RejectionHandlerExamplesSpec.scala
@@ -76,7 +76,7 @@ object HandleNotFoundWithThePath {
RejectionHandler.newBuilder()
.handleNotFound {
extractUnmatchedPath { p =>
- complete(NotFound, s"The path you requested [${p}] does not exist.")
+ complete(NotFound, s"The path you requested [$p] does not exist.")
}
}
.result()
diff --git a/docs/src/test/scala/docs/http/scaladsl/server/directives/SchemeDirectivesExamplesSpec.scala b/docs/src/test/scala/docs/http/scaladsl/server/directives/SchemeDirectivesExamplesSpec.scala
index 45eb607ee..3dc3a88b0 100644
--- a/docs/src/test/scala/docs/http/scaladsl/server/directives/SchemeDirectivesExamplesSpec.scala
+++ b/docs/src/test/scala/docs/http/scaladsl/server/directives/SchemeDirectivesExamplesSpec.scala
@@ -21,7 +21,7 @@ class SchemeDirectivesExamplesSpec extends RoutingSpec with CompileOnlySpec {
// #example-1
val route =
extractScheme { scheme =>
- complete(s"The scheme is '${scheme}'")
+ complete(s"The scheme is '$scheme'")
}
// tests:
diff --git a/project/CopyrightHeader.scala b/project/CopyrightHeader.scala
index cc409376f..697c34745 100644
--- a/project/CopyrightHeader.scala
+++ b/project/CopyrightHeader.scala
@@ -56,7 +56,7 @@ object CopyrightHeader extends AutoPlugin {
case Some(currentText) if isOnlyLightbendCopyrightAnnotated(currentText) =>
HeaderCommentStyle.cStyleBlockComment.commentCreator(text, existingText) + NewLine * 2 + currentText
case Some(currentText) =>
- throw new IllegalStateException(s"Unable to detect copyright for header: [${currentText}]")
+ throw new IllegalStateException(s"Unable to detect copyright for header: [$currentText]")
case None =>
HeaderCommentStyle.cStyleBlockComment.commentCreator(text, existingText)
}
diff --git a/project/Dependencies.scala b/project/Dependencies.scala
index c27808a20..8fee02f0d 100644
--- a/project/Dependencies.scala
+++ b/project/Dependencies.scala
@@ -26,7 +26,7 @@ object Dependencies {
val h2specVersion = "1.5.0"
val h2specName = s"h2spec_${DependencyHelpers.osName}_amd64"
val h2specExe = "h2spec" + DependencyHelpers.exeIfWindows
- val h2specUrl = s"https://github.com/summerwind/h2spec/releases/download/v${h2specVersion}/${h2specName}.zip"
+ val h2specUrl = s"https://github.com/summerwind/h2spec/releases/download/v$h2specVersion/$h2specName.zip"
val scalaTestVersion = "3.2.9"
val specs2Version = "4.10.6"
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pekko.apache.org
For additional commands, e-mail: commits-help@pekko.apache.org