| commit | 4791f1c115181788ebfea5572f64bff5549d801c | [log] [tgz] |
|---|---|---|
| author | David Tolnay <dtolnay@gmail.com> | Tue Mar 17 21:53:16 2020 -0700 |
| committer | David Tolnay <dtolnay@gmail.com> | Tue Mar 17 21:55:19 2020 -0700 |
| tree | a1b394920214d600b498c1005a957edb2dc41031 | |
| parent | 3577d451d7877ee00e765c2f93fd7e563ee45499 [diff] [blame] |
Include <utility> when using std::move
diff --git a/gen/include.rs b/gen/include.rs index b19a097..a642c0a 100644 --- a/gen/include.rs +++ b/gen/include.rs
@@ -36,6 +36,7 @@ pub memory: bool, pub string: bool, pub type_traits: bool, + pub utility: bool, } impl Includes { @@ -74,6 +75,9 @@ if self.type_traits { writeln!(f, "#include <type_traits>")?; } + if self.utility { + writeln!(f, "#include <utility>")?; + } if *self != Self::default() { writeln!(f)?; }