librustdoc: use #[deriving(Copy)]
This commit is contained in:
parent
fa0383f38d
commit
4c007568bf
6 changed files with 11 additions and 24 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue