Skip to content

Commit ce3eb13

Browse files
committed
feat: v1.9.5
1 parent 31b675b commit ce3eb13

File tree

5 files changed

+13
-13
lines changed

5 files changed

+13
-13
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "lombok-macros"
3-
version = "1.9.4"
3+
version = "1.9.5"
44
edition = "2024"
55
authors = ["ltpp-universe <root@ltpp.vip>"]
66
license = "MIT"

src/cfg/impl.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ use crate::*;
33
impl Default for Cfg {
44
fn default() -> Self {
55
Self {
6-
func_type: FuncType::Unknow,
6+
func_type: FuncType::Unknown,
77
skip: false,
88
visibility: Visibility::Public,
99
}

src/cfg/type.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ use crate::{func::r#type::FuncType, visibility::r#type::Visibility};
66
/// whether to skip processing (`skip`), and the visibility of the function (`Visibility`).
77
///
88
/// # Fields
9-
/// - `func_type`: A `FuncType` that specifies the function type (e.g., `Get`, `Set`, or `Unknow`).
9+
/// - `func_type`: A `FuncType` that specifies the function type (e.g., `Get`, `Set`, or `Unknown`).
1010
/// - `skip`: A boolean flag indicating whether the function should be skipped during processing.
1111
/// - `visibility`: A `Visibility` that defines the visibility of the function (e.g., `Public`, `Private`).
1212
#[derive(Debug, Clone, PartialEq, Eq)]

src/func/impl.rs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ use crate::*;
22

33
impl Default for FuncType {
44
fn default() -> Self {
5-
Self::Unknow
5+
Self::Unknown
66
}
77
}
88

@@ -14,7 +14,7 @@ impl FromStr for FuncType {
1414
GET => Ok(FuncType::Get),
1515
GET_MUT => Ok(FuncType::GetMut),
1616
SET => Ok(FuncType::Set),
17-
_ => Ok(FuncType::Unknow),
17+
_ => Ok(FuncType::Unknown),
1818
}
1919
}
2020
}
@@ -53,26 +53,26 @@ impl FuncType {
5353
*self == FuncType::Set
5454
}
5555

56-
/// Checks if the `FuncType` is `Unknow`.
56+
/// Checks if the `FuncType` is `Unknown`.
5757
///
5858
/// # Parameters
5959
/// - `self`: The reference to the `FuncType` instance.
6060
///
6161
/// # Returns
62-
/// - `true` if the `FuncType` is `Unknow`; otherwise, `false`.
62+
/// - `true` if the `FuncType` is `Unknown`; otherwise, `false`.
6363
pub fn is_unknown(&self) -> bool {
64-
*self == Self::Unknow
64+
*self == Self::Unknown
6565
}
6666

67-
/// Checks if the `FuncType` is `Unknow`.
67+
/// Checks if the `FuncType` is `Unknown`.
6868
///
6969
/// # Parameters
7070
/// - `self`: The reference to the `FuncType` instance.
7171
///
7272
/// # Returns
73-
/// - `true` if the `FuncType` is `Unknow`; otherwise, `false`.
73+
/// - `true` if the `FuncType` is `Unknown`; otherwise, `false`.
7474
pub fn is_known(func_type_str: &str) -> bool {
7575
let func_type: FuncType = func_type_str.parse::<FuncType>().unwrap_or_default();
76-
func_type != Self::Unknow
76+
func_type != Self::Unknown
7777
}
7878
}

src/func/type.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33
/// # Variants
44
/// - `Get`: Represents a getter function.
55
/// - `Set`: Represents a setter function.
6-
/// - `Unknow`: Represents an unknown or unspecified function type.
6+
/// - `Unknown`: Represents an unknown or unspecified function type.
77
#[derive(Debug, Clone, PartialEq, Eq)]
88
pub enum FuncType {
99
Get,
1010
GetMut,
1111
Set,
12-
Unknow,
12+
Unknown,
1313
}

0 commit comments

Comments
 (0)