Upgrade to Rust 1.17.
- Remove some uses of 'static in const and static globals that are no longer needed. - Use the new struct initialization shorthand.
This commit is contained in:
@@ -647,7 +647,7 @@ impl<'f> Cursor<'f> {
|
||||
/// The cursor holds a mutable reference to `layout` for its entire lifetime.
|
||||
pub fn new(layout: &'f mut Layout) -> Cursor {
|
||||
Cursor {
|
||||
layout: layout,
|
||||
layout,
|
||||
pos: CursorPosition::Nowhere,
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user