diff options
| author | Kamal Marhubi <kamal@marhubi.com> | 2016-05-25 20:41:26 +0200 |
|---|---|---|
| committer | Kamal Marhubi <kamal@marhubi.com> | 2016-05-31 00:49:26 +0200 |
| commit | bd10af127ee4acbc6cd9e3221f78620d4f1e83be (patch) | |
| tree | 6733df0129c8fee24e065dd50990f7d2a77f9317 /src/patterns.rs | |
| parent | 80c56a01ff9722ab0e52a8bd73b50603bc5a9a96 (diff) | |
utils: Move codemap related utilities to a dedicated module
This commit adds a `codemap` module, and moves the `CodemapSpanUtils` added in #857 to it. This is preparation for adding more `Codemap` specific utilities. Refs #434
Diffstat (limited to 'src/patterns.rs')
| -rw-r--r-- | src/patterns.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/patterns.rs b/src/patterns.rs index 08d9db85201..a0b15a0f8c9 100644 --- a/src/patterns.rs +++ b/src/patterns.rs @@ -9,8 +9,9 @@ // except according to those terms. use Indent; +use codemap::SpanUtils; use rewrite::{Rewrite, RewriteContext}; -use utils::{CodeMapSpanUtils, wrap_str, format_mutability}; +use utils::{wrap_str, format_mutability}; use lists::{format_item_list, itemize_list}; use expr::{rewrite_unary_prefix, rewrite_pair, rewrite_tuple}; use types::rewrite_path; |
