mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
auto merge of #3834 : pcwalton/servo/smallvec-debugging, r=pcwalton
r? @cgaebel
This commit is contained in:
commit
72f6e14f0b
1 changed files with 7 additions and 0 deletions
|
@ -7,6 +7,7 @@
|
|||
|
||||
use std::mem::init as i;
|
||||
use std::cmp;
|
||||
use std::fmt;
|
||||
use std::intrinsics;
|
||||
use std::kinds::marker::ContravariantLifetime;
|
||||
use std::mem;
|
||||
|
@ -435,6 +436,12 @@ macro_rules! def_small_vector(
|
|||
}
|
||||
}
|
||||
|
||||
impl<T: fmt::Show + 'static> fmt::Show for $name<T> {
|
||||
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
|
||||
write!(f, "{}", self.as_slice())
|
||||
}
|
||||
}
|
||||
|
||||
impl<T: 'static> $name<T> {
|
||||
#[inline]
|
||||
pub fn new() -> $name<T> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue