Skip to content

Commit

Permalink
fix: Correct typo
Browse files Browse the repository at this point in the history
  • Loading branch information
attakei committed Apr 8, 2024
1 parent b392616 commit 881323c
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ pub struct FileConfig {
pub replace: String,
}

pub trait ParseAvaliable {
pub trait ParseAvailable {
fn new(root: &PathBuf) -> Result<Self>
where
Self: Sized;
Expand Down
4 changes: 2 additions & 2 deletions src/config/age_toml.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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";

Expand All @@ -15,7 +15,7 @@ pub struct Property {
pub doc: DocumentMut,
}

impl ParseAvaliable for Property {
impl ParseAvailable for Property {
fn new(root: &PathBuf) -> Result<Self> {
let filepath = root.join(FILENAME);
if !filepath.exists() {
Expand Down
4 changes: 2 additions & 2 deletions src/config/cargo_toml.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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";

Expand All @@ -16,7 +16,7 @@ pub struct Property {
pub doc: DocumentMut,
}

impl ParseAvaliable for Property {
impl ParseAvailable for Property {
fn new(root: &PathBuf) -> Result<Self> {
let filepath = root.join(FILENAME);
if !filepath.exists() {
Expand Down
4 changes: 2 additions & 2 deletions src/config/pyproject_toml.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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";

Expand All @@ -16,7 +16,7 @@ pub struct Property {
pub doc: DocumentMut,
}

impl ParseAvaliable for Property {
impl ParseAvailable for Property {
fn new(root: &PathBuf) -> Result<Self> {
let filepath = root.join(FILENAME);
if !filepath.exists() {
Expand Down

0 comments on commit 881323c

Please sign in to comment.