mirror of
https://github.com/meilisearch/MeiliSearch
synced 2024-11-30 00:34:26 +01:00
Add trailing pipe to the snapshots so it doesn't end with trailing whitespace
This commit is contained in:
parent
4829348d6e
commit
d9b4b39922
@ -318,7 +318,7 @@ pub fn snap_field_distributions(index: &Index) -> String {
|
|||||||
let rtxn = index.read_txn().unwrap();
|
let rtxn = index.read_txn().unwrap();
|
||||||
let mut snap = String::new();
|
let mut snap = String::new();
|
||||||
for (field, count) in index.field_distribution(&rtxn).unwrap() {
|
for (field, count) in index.field_distribution(&rtxn).unwrap() {
|
||||||
writeln!(&mut snap, "{field:<16} {count:<6}").unwrap();
|
writeln!(&mut snap, "{field:<16} {count:<6} |").unwrap();
|
||||||
}
|
}
|
||||||
snap
|
snap
|
||||||
}
|
}
|
||||||
@ -328,7 +328,7 @@ pub fn snap_fields_ids_map(index: &Index) -> String {
|
|||||||
let mut snap = String::new();
|
let mut snap = String::new();
|
||||||
for field_id in fields_ids_map.ids() {
|
for field_id in fields_ids_map.ids() {
|
||||||
let name = fields_ids_map.name(field_id).unwrap();
|
let name = fields_ids_map.name(field_id).unwrap();
|
||||||
writeln!(&mut snap, "{field_id:<3} {name:<16}").unwrap();
|
writeln!(&mut snap, "{field_id:<3} {name:<16} |").unwrap();
|
||||||
}
|
}
|
||||||
snap
|
snap
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user