mirror of
https://github.com/fafhrd91/actix-net
synced 2025-06-28 05:10:36 +02:00
add string crate
This commit is contained in:
@ -22,8 +22,7 @@ default = ["http"]
|
||||
[dependencies]
|
||||
regex = "1.3.1"
|
||||
serde = "1.0.80"
|
||||
# string = "0.2.1"
|
||||
string = { git = "https://github.com/carllerche/string.git" }
|
||||
bytestring = "0.1.0"
|
||||
log = "0.4.8"
|
||||
http = { version="0.2.0", optional=true }
|
||||
|
||||
|
@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user