tuned;
authorwenzelm
Thu, 07 Aug 2025 12:35:37 +0200
changeset 82962 26416f52bf81
parent 82961 6a69754cf371
child 82963 5f03fb28849d
tuned;
src/Pure/General/bytes.scala
--- a/src/Pure/General/bytes.scala	Wed Aug 06 17:39:03 2025 +0200
+++ b/src/Pure/General/bytes.scala	Thu Aug 07 12:35:37 2025 +0200
@@ -117,7 +117,7 @@
   /* write */
 
   def write(file: JFile, bytes: Bytes): Unit =
-    using(new FileOutputStream(file))(bytes.write_stream(_))
+    using(new FileOutputStream(file))(bytes.write_stream)
 
   def write(path: Path, bytes: Bytes): Unit = write(path.file, bytes)
 
@@ -125,7 +125,7 @@
   /* append */
 
   def append(file: JFile, bytes: Bytes): Unit =
-    using(new FileOutputStream(file, true))(bytes.write_stream(_))
+    using(new FileOutputStream(file, true))(bytes.write_stream)
 
   def append(path: Path, bytes: Bytes): Unit = append(path.file, bytes)
 
@@ -506,7 +506,7 @@
 
   def encode_base64: Bytes =
     Bytes.Builder.use_stream(hint = (size * 1.5).round) { out =>
-      using(Base64.encode_stream(out))(write_stream(_))
+      using(Base64.encode_stream(out))(write_stream)
     }
 
   def decode_base64: Bytes =