From 881323c1b658dafcc4fb9f519b4f01fbd4986b1b Mon Sep 17 00:00:00 2001 From: Kazuya Takei Date: Tue, 9 Apr 2024 02:03:34 +0900 Subject: [PATCH] fix: Correct typo --- src/config.rs | 2 +- src/config/age_toml.rs | 4 ++-- src/config/cargo_toml.rs | 4 ++-- src/config/pyproject_toml.rs | 4 ++-- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/config.rs b/src/config.rs index a484bc4..63515f6 100644 --- a/src/config.rs +++ b/src/config.rs @@ -23,7 +23,7 @@ pub struct FileConfig { pub replace: String, } -pub trait ParseAvaliable { +pub trait ParseAvailable { fn new(root: &PathBuf) -> Result where Self: Sized; diff --git a/src/config/age_toml.rs b/src/config/age_toml.rs index a4a1e54..6a2d486 100644 --- a/src/config/age_toml.rs +++ b/src/config/age_toml.rs @@ -5,7 +5,7 @@ use std::path::PathBuf; use anyhow::{anyhow, Result}; use toml_edit::{de::from_document, value, DocumentMut}; -use super::{Config, ParseAvaliable}; +use super::{Config, ParseAvailable}; pub const FILENAME: &'static str = ".age.toml"; @@ -15,7 +15,7 @@ pub struct Property { pub doc: DocumentMut, } -impl ParseAvaliable for Property { +impl ParseAvailable for Property { fn new(root: &PathBuf) -> Result { let filepath = root.join(FILENAME); if !filepath.exists() { diff --git a/src/config/cargo_toml.rs b/src/config/cargo_toml.rs index 4bb1b32..2cbc56f 100644 --- a/src/config/cargo_toml.rs +++ b/src/config/cargo_toml.rs @@ -6,7 +6,7 @@ use anyhow::{anyhow, Result}; use toml::{de::Error, Table}; use toml_edit::{value, DocumentMut}; -use super::{Config, ParseAvaliable}; +use super::{Config, ParseAvailable}; pub const FILENAME: &'static str = "Cargo.toml"; @@ -16,7 +16,7 @@ pub struct Property { pub doc: DocumentMut, } -impl ParseAvaliable for Property { +impl ParseAvailable for Property { fn new(root: &PathBuf) -> Result { let filepath = root.join(FILENAME); if !filepath.exists() { diff --git a/src/config/pyproject_toml.rs b/src/config/pyproject_toml.rs index 9c29b9b..7449999 100644 --- a/src/config/pyproject_toml.rs +++ b/src/config/pyproject_toml.rs @@ -6,7 +6,7 @@ use anyhow::{anyhow, Result}; use toml::{de::Error, Table}; use toml_edit::{value, DocumentMut}; -use super::{Config, ParseAvaliable}; +use super::{Config, ParseAvailable}; pub const FILENAME: &'static str = "pyproject.toml"; @@ -16,7 +16,7 @@ pub struct Property { pub doc: DocumentMut, } -impl ParseAvaliable for Property { +impl ParseAvailable for Property { fn new(root: &PathBuf) -> Result { let filepath = root.join(FILENAME); if !filepath.exists() {