Skip to content

Commit

Permalink
refactor: rename Config to PluginConfig
Browse files Browse the repository at this point in the history
  • Loading branch information
vyfor committed Dec 6, 2024
1 parent df96059 commit e7d3795
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/types/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ use crate::{
};

#[derive(Debug)]
pub struct Config {
pub struct PluginConfig {
pub log_level: LogLevel,
pub viewing_text: String,
pub editing_text: String,
Expand All @@ -28,7 +28,7 @@ pub struct Config {
pub timestamp: Option<u128>,
}

impl Deserialize for Config {
impl Deserialize for PluginConfig {
fn deserialize<'a>(input: Value) -> crate::Result<Self> {
let mut input = input.take_map().ok_or("Invalid config")?;

Expand Down Expand Up @@ -69,7 +69,7 @@ impl Deserialize for Config {

validate_buttons(&mut buttons, &workspace);

Ok(Config {
Ok(PluginConfig {
log_level,
viewing_text,
editing_text,
Expand Down

0 comments on commit e7d3795

Please sign in to comment.