From fca193732d21b6d30a01a3ecf9a63cdde9ee477f Mon Sep 17 00:00:00 2001 From: Aaron Weiss Date: Mon, 23 Feb 2015 23:06:35 -0500 Subject: [PATCH] Cleaned up line-wrapping in command.rs. --- src/client/data/command.rs | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/client/data/command.rs b/src/client/data/command.rs index 1fba98c..b4fbeb5 100644 --- a/src/client/data/command.rs +++ b/src/client/data/command.rs @@ -854,7 +854,8 @@ impl Command { } else if m.args.len() == 1 { Command::WHOWAS(m.args[0].clone(), None, Some(suffix.clone())) } else if m.args.len() == 2 { - Command::WHOWAS(m.args[0].clone(), Some(m.args[1].clone()), Some(suffix.clone())) + Command::WHOWAS(m.args[0].clone(), Some(m.args[1].clone()), + Some(suffix.clone())) } else { return Err(invalid_input()) }, @@ -863,7 +864,8 @@ impl Command { } else if m.args.len() == 2 { Command::WHOWAS(m.args[0].clone(), None, Some(m.args[1].clone())) } else if m.args.len() == 3 { - Command::WHOWAS(m.args[0].clone(), Some(m.args[1].clone()), Some(m.args[2].clone())) + Command::WHOWAS(m.args[0].clone(), Some(m.args[1].clone()), + Some(m.args[2].clone())) } else { return Err(invalid_input()) } @@ -956,7 +958,8 @@ impl Command { } else if m.args.len() == 1 { Command::SUMMON(m.args[0].clone(), Some(suffix.clone()), None) } else if m.args.len() == 2 { - Command::SUMMON(m.args[0].clone(), Some(m.args[1].clone()), Some(suffix.clone())) + Command::SUMMON(m.args[0].clone(), Some(m.args[1].clone()), + Some(suffix.clone())) } else { return Err(invalid_input()) }, @@ -965,7 +968,8 @@ impl Command { } else if m.args.len() == 2 { Command::SUMMON(m.args[0].clone(), Some(m.args[1].clone()), None) } else if m.args.len() == 3 { - Command::SUMMON(m.args[0].clone(), Some(m.args[1].clone()), Some(m.args[2].clone())) + Command::SUMMON(m.args[0].clone(), Some(m.args[1].clone()), + Some(m.args[2].clone())) } else { return Err(invalid_input()) }