Skip to content

Commit 181709e

Browse files
authored
Merge pull request #76 from Bochlin/std_logic_misc
Add std_logic_misc package
2 parents 0c88912 + 2a042fc commit 181709e

File tree

8 files changed

+975
-24
lines changed

8 files changed

+975
-24
lines changed

vhdl_lang/src/config.rs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,14 @@
66

77
//! Configuration of the design hierarchy and other settings
88
9-
use toml;
10-
11-
use self::fnv::FnvHashMap;
12-
use self::toml::Value;
139
use crate::data::*;
14-
use fnv;
10+
use fnv::FnvHashMap;
1511
use std::env;
1612
use std::fs::File;
1713
use std::io;
1814
use std::io::prelude::*;
1915
use std::path::Path;
16+
use toml::Value;
2017

2118
#[derive(Clone, PartialEq, Default, Debug)]
2219
pub struct Config {

vhdl_lang/src/data/source.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66

77
use super::contents::Contents;
88
use super::diagnostic::{Diagnostic, DiagnosticResult};
9-
use pad;
109
use parking_lot::{RwLock, RwLockReadGuard};
1110
use std::cmp::{max, min};
1211
use std::collections::hash_map::DefaultHasher;
@@ -399,7 +398,7 @@ impl SrcPos {
399398
context_lines: u32,
400399
) -> (usize, String) {
401400
let lines = self.get_line_context(context_lines, contents);
402-
use self::pad::{Alignment, PadStr};
401+
use pad::{Alignment, PadStr};
403402
// +1 since lines are shown with 1-index
404403
let lineno_len = (self.range.start.line + context_lines + 1)
405404
.to_string()

vhdl_lang/src/data/symbol_table.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@ use super::latin_1::Latin1String;
88
use parking_lot::RwLock;
99
use std::sync::Arc;
1010

11-
use self::fnv::FnvHashMap;
12-
use fnv;
11+
use fnv::FnvHashMap;
1312

1413
/// Represents a unique string symbol.
1514
///

0 commit comments

Comments
 (0)