Fix formatting.
This commit is contained in:
parent
06214cf499
commit
8fc80ecd10
@ -328,8 +328,9 @@ fn main() {
|
|||||||
|
|
||||||
match rl.readline(prompt) {
|
match rl.readline(prompt) {
|
||||||
// Line continuation
|
// Line continuation
|
||||||
Ok(line) if line.ends_with("\\") => {
|
Ok(mut line) if line.ends_with("\\") => {
|
||||||
input += &line[..line.len() - 1];
|
line.pop();
|
||||||
|
input += line.trim_end();
|
||||||
input.push('\n');
|
input.push('\n');
|
||||||
}
|
}
|
||||||
Ok(line) => {
|
Ok(line) => {
|
||||||
|
@ -1434,7 +1434,7 @@ impl Module {
|
|||||||
self.functions.entry(k).or_insert_with(|| v.clone());
|
self.functions.entry(k).or_insert_with(|| v.clone());
|
||||||
}
|
}
|
||||||
for (&k, v) in &other.type_iterators {
|
for (&k, v) in &other.type_iterators {
|
||||||
self.type_iterators.entry(k).or_insert(v.clone());
|
self.type_iterators.entry(k).or_insert_with(|| v.clone());
|
||||||
}
|
}
|
||||||
self.all_functions.clear();
|
self.all_functions.clear();
|
||||||
self.all_variables.clear();
|
self.all_variables.clear();
|
||||||
|
Loading…
Reference in New Issue
Block a user