1
0
mirror of https://github.com/fafhrd91/actix-net synced 2025-06-28 20:10:35 +02:00

add string crate

This commit is contained in:
Nikolay Kim
2019-12-07 09:59:39 +06:00
parent cbdbc05dbd
commit 6c00ab8296
7 changed files with 173 additions and 3 deletions

View File

@ -29,7 +29,7 @@ impl<'a> ResourcePath for &'a str {
}
}
impl<T: AsRef<[u8]>> ResourcePath for string::String<T> {
impl ResourcePath for bytesrting::ByteString {
fn path(&self) -> &str {
&*self
}