Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

chore: Upgrade to Rust 1.73 (#3096)

Piotr Osiewiczc46137e40da3
diff --git a/Dockerfile b/Dockerfile
index 208700f7fb5..f3d0b601b9d 100644
--- a/Dockerfile
+++ b/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 . .
diff --git a/crates/language/src/buffer_tests.rs b/crates/language/src/buffer_tests.rs
index 3bedf5b7a8e..b7e9001c6ab 100644
--- a/crates/language/src/buffer_tests.rs
+++ b/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(),
}),
diff --git a/crates/ui/src/components/list.rs b/crates/ui/src/components/list.rs
index 8389c8c2c7c..b7dff6b2c59 100644
--- a/crates/ui/src/components/list.rs
+++ b/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),
),
diff --git a/crates/ui/src/elements/details.rs b/crates/ui/src/elements/details.rs
index d36b6742914..9c829bcd416 100644
--- a/crates/ui/src/elements/details.rs
+++ b/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))
}
}
diff --git a/rust-toolchain.toml b/rust-toolchain.toml
index 9720c52eaab..38d54d7aed3 100644
--- a/rust-toolchain.toml
+++ b/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" ]