Add *_with_name methods
This commit is contained in:
1 parent
53a973e9dd
commit
261a7ea154
5 files changed
+37
-13
No files matched your search
+3
-1
@@ -27,7 +27,9 @@ fn main() {
|
||||
PrettyPrinter::new()
|
||||
.language("yaml")
|
||||
.line_numbers(true)
|
||||
.input_from_bytes(&bytes)
|
||||
.grid(true)
|
||||
.header(true)
|
||||
.input_from_bytes_with_name(&bytes, "person.yaml")
|
||||
.print()
|
||||
.unwrap();
|
||||
}
|
||||
Reference in new issue
Block a user