From 10ee2acdd26a7f1298c6f6d6b7af9b469fe29b87 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sat, 4 May 2024 14:41:41 +0200 Subject: Merging upstream version 1.70.0+dfsg2. Signed-off-by: Daniel Baumann --- vendor/gix-config-value/tests/value/main.rs | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 vendor/gix-config-value/tests/value/main.rs (limited to 'vendor/gix-config-value/tests/value/main.rs') diff --git a/vendor/gix-config-value/tests/value/main.rs b/vendor/gix-config-value/tests/value/main.rs new file mode 100644 index 000000000..13a33c9d8 --- /dev/null +++ b/vendor/gix-config-value/tests/value/main.rs @@ -0,0 +1,17 @@ +use std::borrow::Cow; + +use bstr::{BStr, ByteSlice}; + +type Result = std::result::Result>; +fn b(s: &str) -> &bstr::BStr { + s.into() +} + +pub fn cow_str(s: &str) -> Cow<'_, BStr> { + Cow::Borrowed(s.as_bytes().as_bstr()) +} + +mod boolean; +mod color; +mod integer; +mod path; -- cgit v1.2.3