Skip to content

Commit 31014fa

Browse files
committed
Rename Slice to AsSlice because of rust-lang/rust#17807
1 parent 62a4548 commit 31014fa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,7 @@ fn is_restricted_name_char(c: char) -> bool {
344344

345345

346346
#[inline]
347-
fn fmt_params<T: Slice<Param>>(params: T, fmt: &mut fmt::Formatter) -> fmt::Result {
347+
fn fmt_params<T: AsSlice<Param>>(params: T, fmt: &mut fmt::Formatter) -> fmt::Result {
348348
for param in params.as_slice().iter() {
349349
try!(fmt_param(param, fmt));
350350
}

0 commit comments

Comments
 (0)