File tree Expand file tree Collapse file tree 4 files changed +4
-8
lines changed
book/listings/list_widgets Expand file tree Collapse file tree 4 files changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -23,8 +23,7 @@ fn main() -> glib::ExitCode {
23
23
fn build_ui ( app : & Application ) {
24
24
// ANCHOR: model
25
25
// Create a `Vec<IntegerObject>` with numbers from 0 to 100_000
26
- let vector: Vec < IntegerObject > =
27
- ( 0 ..=100_000 ) . into_iter ( ) . map ( IntegerObject :: new) . collect ( ) ;
26
+ let vector: Vec < IntegerObject > = ( 0 ..=100_000 ) . map ( IntegerObject :: new) . collect ( ) ;
28
27
29
28
// Create new model
30
29
let model = gio:: ListStore :: new ( IntegerObject :: static_type ( ) ) ;
Original file line number Diff line number Diff line change @@ -23,8 +23,7 @@ fn main() -> glib::ExitCode {
23
23
24
24
fn build_ui ( app : & Application ) {
25
25
// Create a `Vec<IntegerObject>` with numbers from 0 to 100_000
26
- let vector: Vec < IntegerObject > =
27
- ( 0 ..=100_000 ) . into_iter ( ) . map ( IntegerObject :: new) . collect ( ) ;
26
+ let vector: Vec < IntegerObject > = ( 0 ..=100_000 ) . map ( IntegerObject :: new) . collect ( ) ;
28
27
29
28
// Create new model
30
29
let model = gio:: ListStore :: new ( IntegerObject :: static_type ( ) ) ;
Original file line number Diff line number Diff line change @@ -22,8 +22,7 @@ fn main() -> glib::ExitCode {
22
22
23
23
fn build_ui ( app : & Application ) {
24
24
// Create a `Vec<IntegerObject>` with numbers from 0 to 100_000
25
- let vector: Vec < IntegerObject > =
26
- ( 0 ..=100_000 ) . into_iter ( ) . map ( IntegerObject :: new) . collect ( ) ;
25
+ let vector: Vec < IntegerObject > = ( 0 ..=100_000 ) . map ( IntegerObject :: new) . collect ( ) ;
27
26
28
27
// Create new model
29
28
let model = gio:: ListStore :: new ( IntegerObject :: static_type ( ) ) ;
Original file line number Diff line number Diff line change @@ -23,8 +23,7 @@ fn main() -> glib::ExitCode {
23
23
24
24
fn build_ui ( app : & Application ) {
25
25
// Create a `Vec<IntegerObject>` with numbers from 0 to 100_000
26
- let vector: Vec < IntegerObject > =
27
- ( 0 ..=100_000 ) . into_iter ( ) . map ( IntegerObject :: new) . collect ( ) ;
26
+ let vector: Vec < IntegerObject > = ( 0 ..=100_000 ) . map ( IntegerObject :: new) . collect ( ) ;
28
27
29
28
// Create new model
30
29
let model = gio:: ListStore :: new ( IntegerObject :: static_type ( ) ) ;
You can’t perform that action at this time.
0 commit comments