diff options
| author | Jorge Aparicio <japaricious@gmail.com> | 2015-01-31 20:03:04 -0500 |
|---|---|---|
| committer | Jorge Aparicio <japaricious@gmail.com> | 2015-02-02 13:40:18 -0500 |
| commit | fd702702ee90ddb47d207f8886818c7f91600713 (patch) | |
| tree | 7bed4a4d739e1372d9e101b350297e7946f17819 /src/librustc/plugin | |
| parent | d5f61b4332f3edd83c43f3f0d52d0381d7a6c37a (diff) | |
| download | rust-fd702702ee90ddb47d207f8886818c7f91600713.tar.gz rust-fd702702ee90ddb47d207f8886818c7f91600713.zip | |
`for x in xs.into_iter()` -> `for x in xs`
Also `for x in option.into_iter()` -> `if let Some(x) = option`
Diffstat (limited to 'src/librustc/plugin')
| -rw-r--r-- | src/librustc/plugin/load.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustc/plugin/load.rs b/src/librustc/plugin/load.rs index 22edd7c691a..b9bf577b38e 100644 --- a/src/librustc/plugin/load.rs +++ b/src/librustc/plugin/load.rs @@ -204,7 +204,7 @@ impl<'a> PluginLoader<'a> { } } - for mut def in macros.into_iter() { + for mut def in macros { let name = token::get_ident(def.ident); def.use_locally = match macro_selection.as_ref() { None => true, |
