Skip to content

Commit

Permalink
chore: update to rust 1.80 (#2344)
Browse files Browse the repository at this point in the history
  • Loading branch information
ellie committed Aug 7, 2024
1 parent 58c9049 commit b764ee3
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ exclude = ["ui/backend"]
[workspace.package]
version = "18.4.0-beta.3"
authors = ["Ellie Huxtable <[email protected]>"]
rust-version = "1.79"
rust-version = "1.80"
license = "MIT"
homepage = "https://atuin.sh"
repository = "https://github.com/atuinsh/atuin"
Expand Down
8 changes: 4 additions & 4 deletions crates/atuin/src/command/client/search/interactive.rs
Original file line number Diff line number Diff line change
Expand Up @@ -764,7 +764,7 @@ impl State {
);
}

fn build_title(&mut self, theme: &Theme) -> Paragraph {
fn build_title(&self, theme: &Theme) -> Paragraph {
let title = if self.update_needed.is_some() {
let error_style: Style = theme.get_error().into();
Paragraph::new(Text::from(Span::styled(
Expand Down Expand Up @@ -820,7 +820,7 @@ impl State {
.alignment(Alignment::Center)
}

fn build_stats(&mut self, theme: &Theme) -> Paragraph {
fn build_stats(&self, theme: &Theme) -> Paragraph {
let stats = Paragraph::new(Text::from(Span::raw(format!(
"history count: {}",
self.history_count,
Expand Down Expand Up @@ -863,7 +863,7 @@ impl State {
}
}

fn build_input(&mut self, style: StyleState) -> Paragraph {
fn build_input(&self, style: StyleState) -> Paragraph {
/// Max width of the UI box showing current mode
const MAX_WIDTH: usize = 14;
let (pref, mode) = if self.switched_search_mode {
Expand Down Expand Up @@ -895,7 +895,7 @@ impl State {
}

fn build_preview(
&mut self,
&self,
results: &[History],
compact: bool,
preview_width: u16,
Expand Down
18 changes: 9 additions & 9 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
fenix.packages.${system}.fromToolchainFile
{
file = ./rust-toolchain.toml;
sha256 = "sha256-Ngiz76YP4HTY75GGdH2P+APE/DEIx2R/Dn+BwwOyzZU=";
sha256 = "sha256-6eN/GKzjVSjEhGO9FhWObkRFaE1Jf+uqMSdQnb8lcB4=";
};
in
pkgs.makeRustPlatform {
Expand Down
2 changes: 1 addition & 1 deletion rust-toolchain.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
[toolchain]
channel = "1.79"
channel = "1.80"

0 comments on commit b764ee3

Please sign in to comment.