summaryrefslogtreecommitdiffstats
path: root/src/doc/book/listings/ch20-web-server/no-listing-02-impl-threadpool-new/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/doc/book/listings/ch20-web-server/no-listing-02-impl-threadpool-new/src/lib.rs')
-rw-r--r--src/doc/book/listings/ch20-web-server/no-listing-02-impl-threadpool-new/src/lib.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/doc/book/listings/ch20-web-server/no-listing-02-impl-threadpool-new/src/lib.rs b/src/doc/book/listings/ch20-web-server/no-listing-02-impl-threadpool-new/src/lib.rs
new file mode 100644
index 000000000..f0e1890bb
--- /dev/null
+++ b/src/doc/book/listings/ch20-web-server/no-listing-02-impl-threadpool-new/src/lib.rs
@@ -0,0 +1,7 @@
+pub struct ThreadPool;
+
+impl ThreadPool {
+ pub fn new(size: usize) -> ThreadPool {
+ ThreadPool
+ }
+}