1
Fork 0

librustdoc: use #[deriving(Copy)]

This commit is contained in:
Jorge Aparicio 2014-12-14 23:17:42 -05:00
parent fa0383f38d
commit 4c007568bf
6 changed files with 11 additions and 24 deletions

View file

@ -225,13 +225,12 @@ struct Source<'a>(&'a str);
// Helper structs for rendering items/sidebars and carrying along contextual
// information
#[deriving(Copy)]
struct Item<'a> {
cx: &'a Context,
item: &'a clean::Item,
}
impl<'a> Copy for Item<'a> {}
struct Sidebar<'a> { cx: &'a Context, item: &'a clean::Item, }
/// Struct representing one entry in the JS search index. These are all emitted