better naming: str --> string
Suggested by in Many thanks!
@@ -2274,8 +2274,7 @@ fn system_call(
_ => { unreachable!() }
};
- let chars = {
- let mut str = String::new();
+ let mut string = String::new();
if stream.options.stream_type == StreamType::Binary {
let mut mstream = stream.clone();
@@ -2284,7 +2283,7 @@ fn system_call(
match mstream.read(&mut b) {
Ok(1) => {
- str.push(b[0] as char);
+ string.push(b[0] as char);
}
_ => {
break;
@@ -2302,17 +2301,15 @@ fn system_call(
match result {
Some(Ok(c)) => {
- str.push(c);
+ string.push(c);
}
_ => { break;
}
}
}
- }
- str
};
- let str = self.heap.put_complete_string(&chars);
- self.unify(self[temp_v!(3)], str);
+ let string = self.heap.put_complete_string(&string);
+ self.unify(self[temp_v!(3)], string);
}
&SystemClauseType::GetCode => {
let mut stream =
