Skip to content

Commit b9b6ee7

Browse files
committed
feat: v2.0.16
1 parent 8de9f46 commit b9b6ee7

File tree

4 files changed

+5
-9
lines changed

4 files changed

+5
-9
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 = "2.0.15"
3+
version = "2.0.16"
44
readme = "README.md"
55
edition = "2024"
66
authors = ["root@ltpp.vip"]

src/func/impl.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,6 @@ impl FromStr for ReturnType {
132132
#[inline(always)]
133133
fn from_str(s: &str) -> Result<ReturnType, String> {
134134
match s {
135-
REFERENCE => Ok(ReturnType::Reference),
136135
CLONE => Ok(ReturnType::Clone),
137136
COPY => Ok(ReturnType::Copy),
138137
DEREF => Ok(ReturnType::Deref),

src/lib.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ pub(crate) use syn::{
4444
///
4545
/// # Supported Attributes
4646
/// - `#[get(pub)]` - Generates a public getter with reference return type
47-
/// - `#[get(pub, reference)]` - Generates a public getter that returns a reference (`&T`)
47+
/// - `#[get(pub)]` - Generates a public getter that returns a reference (`&T`)
4848
/// - `#[get(pub, clone)]` - Generates a public getter that returns a cloned value (`T`)
4949
/// - `#[get(pub, copy)]` - Generates a public getter that returns a copy of the field value (`self.field`) for Copy types
5050
/// - `#[get(pub, deref)]` - Generates a public getter that returns a dereferenced value (`*field`) with enhanced match control for Option/Result types
@@ -80,7 +80,7 @@ pub(crate) use syn::{
8080
/// struct BasicStruct {
8181
/// #[get(pub)]
8282
/// name: String,
83-
/// #[get(pub, type(reference))]
83+
/// #[get(pub)]
8484
/// description: String,
8585
/// #[get(pub, type(clone))]
8686
/// data: Vec<i32>,
@@ -113,7 +113,7 @@ pub(crate) use syn::{
113113
/// struct OptionalStruct {
114114
/// #[get(pub)]
115115
/// optional: Option<String>,
116-
/// #[get(pub, type(reference))]
116+
/// #[get(pub)]
117117
/// optional_ref: Option<String>,
118118
/// #[get(pub)]
119119
/// result: Result<String, String>,
@@ -459,7 +459,7 @@ pub fn setter(input: TokenStream) -> TokenStream {
459459
/// #[get(pub)]
460460
/// #[set(pub)]
461461
/// optional: Option<String>,
462-
/// #[get(pub, type(reference))]
462+
/// #[get(pub)]
463463
/// result: Result<i32, String>,
464464
/// #[get(pub(crate))]
465465
/// #[set(private)]

src/parse/const.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,6 @@ pub const SUPER: &str = "super";
3434
/// Constant for the "pub(super)" visibility modifier.
3535
pub const PUB_SUPER: &str = "pub(super)";
3636

37-
/// Constant for return reference type.
38-
pub const REFERENCE: &str = "reference";
39-
4037
/// Constant for return clone type.
4138
pub const CLONE: &str = "clone";
4239

0 commit comments

Comments
 (0)