chore: fix typos (#79)
This commit is contained in:
parent
4ca00c2052
commit
6a648b8827
1 changed files with 14 additions and 14 deletions
|
|
@ -12,7 +12,7 @@ pub struct Config {
|
|||
}
|
||||
|
||||
impl Config {
|
||||
pub async fn retrive(path: impl AsRef<Path>) -> anyhow::Result<Self> {
|
||||
pub async fn retrieve(path: impl AsRef<Path>) -> anyhow::Result<Self> {
|
||||
let content = tokio::fs::read_to_string(path).await?;
|
||||
let config: Self = toml::from_str(&content)?;
|
||||
Ok(config)
|
||||
|
|
|
|||
Loading…
Reference in a new issue