File: 0004-src-data-parsing-fix-build-with-recent-Rust.patch

package info (click to toggle)
squeekboard 1.43.1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,284 kB
  • sloc: ansic: 2,730; xml: 1,247; python: 296; sh: 48; makefile: 10
file content (23 lines) | stat: -rw-r--r-- 968 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
From: Arnaud Ferraris <arnaud.ferraris@collabora.com>
Date: Thu, 6 Nov 2025 10:02:54 +0100
Subject: src: data: parsing: fix build with recent Rust

`name.into()` isn't explicit enough, leading to build failures. Simply
use `name` and the compiler will figure out the rest.
---
 src/data/parsing.rs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/data/parsing.rs b/src/data/parsing.rs
index 7f0cb31..b4ae32a 100644
--- a/src/data/parsing.rs
+++ b/src/data/parsing.rs
@@ -229,7 +229,7 @@ impl Layout {
                                 &self.buttons,
                                 &self.outlines,
                                 name,
-                                button_states_cache.get(name.into())
+                                button_states_cache.get(name)
                                     .expect("Button state not created")
                                     .clone(),
                                 &mut warning_handler,