From f3ce78bc53db3877a8655e448c0de424cc24b844 Mon Sep 17 00:00:00 2001 From: Johannes Altmanninger Date: Wed, 15 Nov 2023 16:31:33 +0100 Subject: [PATCH] history: remove spurious UTF-8 check regression Closes #10102 --- fish-rust/src/history/file.rs | 2 -- 1 file changed, 2 deletions(-) diff --git a/fish-rust/src/history/file.rs b/fish-rust/src/history/file.rs index 80d1db3e6..6ff6785a5 100644 --- a/fish-rust/src/history/file.rs +++ b/fish-rust/src/history/file.rs @@ -304,8 +304,6 @@ fn unescape_yaml_fish_2_0(s: &mut Vec) { // character. cursor = backslash + 1; } - - debug_assert!(std::str::from_utf8(s).is_ok()); } /// Read one line, stripping off any newline, returning the number of bytes consumed.