add str traits for split, between, unquote; consolidate tests

Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
Jason Volk 2024-08-31 02:13:23 +00:00 committed by strawberry
parent 2db017af37
commit 99ad404ea9
8 changed files with 212 additions and 51 deletions

View file

@ -7,7 +7,7 @@ use std::{
};
use async_trait::async_trait;
use conduit::{err, error::inspect_log, utils::string::split_once_infallible, Err, Result, Server};
use conduit::{err, error::inspect_log, utils::string::SplitInfallible, Err, Result, Server};
use database::Database;
/// Abstract interface for a Service
@ -147,4 +147,4 @@ where
/// Utility for service implementations; see Service::name() in the trait.
#[inline]
pub(crate) fn make_name(module_path: &str) -> &str { split_once_infallible(module_path, "::").1 }
pub(crate) fn make_name(module_path: &str) -> &str { module_path.split_once_infallible("::").1 }