1//! Local corpus adapter. 2 3use anyhow::Context; 4use std::path::Path; 5 6pub fn read_to_string(path: &Path) -> anyhow::Result<String> { 7 std::fs::read_to_string(path).with_context(|| format!("reading {}", path.display())) 8}