File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change 35
35
//! ```
36
36
37
37
#![ deny( missing_docs) ]
38
+ #![ deny( missing_debug_implementations) ]
38
39
39
40
extern crate futures;
40
41
extern crate num_cpus;
@@ -110,12 +111,22 @@ impl fmt::Debug for CpuPool {
110
111
}
111
112
}
112
113
114
+ impl fmt:: Debug for Builder {
115
+ fn fmt ( & self , f : & mut fmt:: Formatter ) -> fmt:: Result {
116
+ f. debug_struct ( "Builder" )
117
+ . field ( "pool_size" , & self . pool_size )
118
+ . field ( "name_prefix" , & self . name_prefix )
119
+ . finish ( )
120
+ }
121
+ }
122
+
113
123
/// The type of future returned from the `CpuPool::spawn` function, which
114
124
/// proxies the futures running on the thread pool.
115
125
///
116
126
/// This future will resolve in the same way as the underlying future, and it
117
127
/// will propagate panics.
118
128
#[ must_use]
129
+ #[ derive( Debug ) ]
119
130
pub struct CpuFuture < T , E > {
120
131
inner : Receiver < thread:: Result < Result < T , E > > > ,
121
132
keep_running_flag : Arc < AtomicBool > ,
You can’t perform that action at this time.
0 commit comments