reset instruction pointers with calls, make HCPrinter::range_from safe (#1233)
This commit is contained in:
@@ -376,7 +376,7 @@ impl HCValueOutputter for PrinterOutputter {
|
||||
}
|
||||
|
||||
fn range_from(&self, index: RangeFrom<usize>) -> &str {
|
||||
&self.contents.as_str()[index]
|
||||
&self.contents.as_str().get(index).unwrap_or("")
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user