Refine posistion display.

This commit is contained in:
Stephen Chung
2021-04-23 14:24:53 +08:00
parent 1fbbb2a40d
commit fc782c5563
5 changed files with 79 additions and 115 deletions

View File

@@ -838,7 +838,7 @@ fn default_debug(_s: &str, _source: Option<&str>, _pos: Position) {
#[cfg(not(feature = "no_std"))]
#[cfg(not(any(target_arch = "wasm32", target_arch = "wasm64")))]
if let Some(source) = _source {
println!("{} @ {:?} | {}", source, _pos, _s);
println!("{}{:?} | {}", source, _pos, _s);
} else if _pos.is_none() {
println!("{}", _s);
} else {