chore: Upgrade to Rust 1.73 (#3096)

Piotr Osiewicz created

Release Notes:
- N/A

Change summary

Dockerfile                          | 2 +-
crates/language/src/buffer_tests.rs | 2 +-
crates/ui/src/components/list.rs    | 4 ++--
crates/ui/src/elements/details.rs   | 2 +-
rust-toolchain.toml                 | 2 +-
5 files changed, 6 insertions(+), 6 deletions(-)

Detailed changes

Dockerfile 🔗

@@ -1,6 +1,6 @@
 # syntax = docker/dockerfile:1.2
 
-FROM rust:1.72-bullseye as builder
+FROM rust:1.73-bullseye as builder
 WORKDIR app
 COPY . .
 

crates/language/src/buffer_tests.rs 🔗

@@ -1427,7 +1427,7 @@ fn test_autoindent_block_mode_without_original_indent_columns(cx: &mut AppContex
         // Insert the block at column zero. The entire block is indented
         // so that the first line matches the previous line's indentation.
         buffer.edit(
-            [(Point::new(2, 0)..Point::new(2, 0), inserted_text.clone())],
+            [(Point::new(2, 0)..Point::new(2, 0), inserted_text)],
             Some(AutoindentMode::Block {
                 original_indent_columns: original_indent_columns.clone(),
             }),

crates/ui/src/components/list.rs 🔗

@@ -135,7 +135,7 @@ impl ListHeader {
                                     .size(IconSize::Small)
                             }))
                             .child(
-                                Label::new(self.label.clone())
+                                Label::new(self.label)
                                     .color(LabelColor::Muted)
                                     .size(LabelSize::Small),
                             ),
@@ -191,7 +191,7 @@ impl ListSubHeader {
                                 .size(IconSize::Small)
                         }))
                         .child(
-                            Label::new(self.label.clone())
+                            Label::new(self.label)
                                 .color(LabelColor::Muted)
                                 .size(LabelSize::Small),
                         ),

crates/ui/src/elements/details.rs 🔗

@@ -27,7 +27,7 @@ impl Details {
             .gap_0p5()
             .text_xs()
             .text_color(theme.lowest.base.default.foreground)
-            .child(self.text.clone())
+            .child(self.text)
             .children(self.meta.map(|m| m))
     }
 }

rust-toolchain.toml 🔗

@@ -1,4 +1,4 @@
 [toolchain]
-channel = "1.72.1"
+channel = "1.73"
 components = [ "rustfmt" ]
 targets = [ "x86_64-apple-darwin", "aarch64-apple-darwin", "wasm32-wasi" ]