diff options
| author | John Kåre Alsaker <john.kare.alsaker@gmail.com> | 2020-01-29 01:13:48 +0100 |
|---|---|---|
| committer | John Kåre Alsaker <john.kare.alsaker@gmail.com> | 2020-01-29 01:13:48 +0100 |
| commit | b0b11d31a2cd4ff00973c17ff987c345301b2ebd (patch) | |
| tree | e623638389cd2eb48593e072354ce0f044941f63 /src/librustc_errors | |
| parent | 3761dcd3467441f78939ccb3b341b03b6a7558d7 (diff) | |
| download | rust-b0b11d31a2cd4ff00973c17ff987c345301b2ebd.tar.gz rust-b0b11d31a2cd4ff00973c17ff987c345301b2ebd.zip | |
Use termize instead of term_size
Diffstat (limited to 'src/librustc_errors')
| -rw-r--r-- | src/librustc_errors/Cargo.toml | 2 | ||||
| -rw-r--r-- | src/librustc_errors/emitter.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/librustc_errors/Cargo.toml b/src/librustc_errors/Cargo.toml index 01ea80659d6..b8340b1a1df 100644 --- a/src/librustc_errors/Cargo.toml +++ b/src/librustc_errors/Cargo.toml @@ -18,7 +18,7 @@ unicode-width = "0.1.4" atty = "0.2" termcolor = "1.0" annotate-snippets = "0.6.1" -term_size = "0.3.1" +termize = "0.1.1" [target.'cfg(windows)'.dependencies] winapi = { version = "0.3", features = ["handleapi", "synchapi", "winbase"] } diff --git a/src/librustc_errors/emitter.rs b/src/librustc_errors/emitter.rs index bf660d188b2..f62922c6e20 100644 --- a/src/librustc_errors/emitter.rs +++ b/src/librustc_errors/emitter.rs @@ -1366,7 +1366,7 @@ impl EmitterWriter { } else if self.ui_testing { 140 } else { - term_size::dimensions() + termize::dimensions() .map(|(w, _)| w.saturating_sub(code_offset)) .unwrap_or(std::usize::MAX) }; |
