diff options
| author | Teddy Wing | 2016-04-24 05:40:45 -0400 |
|---|---|---|
| committer | Teddy Wing | 2016-04-24 05:40:45 -0400 |
| commit | afc01ecb67dd978879d423866d33ac0c526151f4 (patch) | |
| tree | 262d27a7ec2c80ab257f53008df57ac5fd16c20f /src/tests.rs | |
| parent | 2d1f7031f03194fbceffc15b1d6376abea243e22 (diff) | |
| download | mutt-alias-auto-add-afc01ecb67dd978879d423866d33ac0c526151f4.tar.bz2 | |
Move `Alias` to separate alias module
Take all of our Alias code, functions, errors, etc. and move them into
their own module. This removes some clutter from our `main.rs` file and
makes things better organised. Now all the alias code lives in its own
dedicated place.
Update our test file imports to match this change.
Updates to alias code:
* Reordered imports alphabetically
* Made `Alias` public
* Made `AliasSearchError` public
* Made all methods on `Alias` public
Diffstat (limited to 'src/tests.rs')
| -rw-r--r-- | src/tests.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tests.rs b/src/tests.rs index 21cf147..708121e 100644 --- a/src/tests.rs +++ b/src/tests.rs @@ -1,7 +1,7 @@ use std::fs::{self, File, OpenOptions}; use std::io::{Read, Write}; -use super::{Alias, AliasSearchError}; +use alias::{Alias, AliasSearchError}; #[test] fn new_alias_with_only_email() { |
