From aaf9e01c69d2fa74aa4565dfa6fdaced96905927 Mon Sep 17 00:00:00 2001 From: Karol Herbst Date: Wed, 3 Jun 2026 16:49:49 +0200 Subject: [PATCH] rusticl/util: fix rustc-1.95 compilation error Somehow newer rustc complains about into(), just use to_owned() instead. Part-of: --- src/gallium/frontends/rusticl/util/string.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/gallium/frontends/rusticl/util/string.rs b/src/gallium/frontends/rusticl/util/string.rs index 6c8a4a4b2c4..a8833e94ef2 100644 --- a/src/gallium/frontends/rusticl/util/string.rs +++ b/src/gallium/frontends/rusticl/util/string.rs @@ -79,16 +79,16 @@ impl Join<&CStr> for [CString] { fn test_push_cstr() { let mut owned = c"SomeString".to_owned(); owned.push_cstr(c"MoreString"); - assert_eq!(owned, c"SomeStringMoreString".into()); + assert_eq!(owned, c"SomeStringMoreString".to_owned()); } #[test] fn test_join_c_strings() { - assert_eq!(Join::join([].as_slice(), c";"), c"".into()); - assert_eq!([c"test".to_owned()].join(c";"), c"test".into()); + assert_eq!(Join::join([].as_slice(), c";"), c"".to_owned()); + assert_eq!([c"test".to_owned()].join(c";"), c"test".to_owned()); assert_eq!( [c"String".to_owned(), c"AnotherString".to_owned()].join(c";"), - c"String;AnotherString".into() + c"String;AnotherString".to_owned() ); assert_eq!( [ @@ -97,6 +97,6 @@ fn test_join_c_strings() { c"Testing".to_owned() ] .join(c"###"), - c"String###AnotherString###Testing".into(), + c"String###AnotherString###Testing".to_owned(), ); }