File tree Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Original file line number Diff line number Diff line change 11[package ]
22name = " toolshed"
3- version = " 0.6.0 "
3+ version = " 0.6.1 "
44authors = [
" maciejhirsz <[email protected] >" ]
55license = " MIT/Apache-2.0"
66description = " Arena allocator and a handful of useful data structures"
Original file line number Diff line number Diff line change @@ -117,10 +117,16 @@ impl<'arena> AsRef<str> for NulTermStr<'arena> {
117117}
118118
119119impl < ' arena > Deref for NulTermStr < ' arena > {
120- type Target = str ;
120+ type Target = & ' arena str ;
121121
122- fn deref ( & self ) -> & str {
123- self . 0
122+ fn deref ( & self ) -> & & ' arena str {
123+ & self . 0
124+ }
125+ }
126+
127+ impl < ' arena > From < NulTermStr < ' arena > > for & ' arena str {
128+ fn from ( nts : NulTermStr < ' arena > ) -> & ' arena str {
129+ nts. 0
124130 }
125131}
126132
You can’t perform that action at this time.
0 commit comments