Skip to content

Commit a0a43b3

Browse files
committed
feat: v1.13.14
1 parent e403c64 commit a0a43b3

File tree

6 files changed

+22
-22
lines changed

6 files changed

+22
-22
lines changed

.github/workflows/rust.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ jobs:
8888
toolchain: stable
8989
components: clippy
9090
- name: Run clippy
91-
run: cargo clippy --all-features -- -A warnings
91+
run: cargo clippy --all-features
9292

9393
build:
9494
needs: setup

Cargo.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "lombok-macros"
3-
version = "1.13.13"
3+
version = "1.13.14"
44
readme = "README.md"
55
edition = "2024"
66
authors = ["root@ltpp.vip"]
@@ -18,9 +18,9 @@ exclude = [
1818
]
1919

2020
[dependencies]
21-
proc-macro2 = "1.0.101"
22-
quote = "1.0.41"
23-
syn = "2.0.107"
21+
proc-macro2 = "1.0.103"
22+
quote = "1.0.42"
23+
syn = "2.0.111"
2424

2525
[lib]
2626
proc-macro = true

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ impl<'a, T: Clone + Debug> LombokTest<'a, T> {
176176
#[automatically_derived]
177177
impl<'a, T: ::core::fmt::Debug + Clone + Debug> ::core::fmt::Debug
178178
for LombokTest<'a, T> {
179-
#[inline]
179+
#[inline(always)]
180180
fn fmt(&self, f: &mut ::core::fmt::Formatter) -> ::core::fmt::Result {
181181
::core::fmt::Formatter::debug_struct_field3_finish(
182182
f,
@@ -193,7 +193,7 @@ for LombokTest<'a, T> {
193193
#[automatically_derived]
194194
impl<'a, T: ::core::clone::Clone + Clone + Debug> ::core::clone::Clone
195195
for LombokTest<'a, T> {
196-
#[inline]
196+
#[inline(always)]
197197
fn clone(&self) -> LombokTest<'a, T> {
198198
LombokTest {
199199
list: ::core::clone::Clone::clone(&self.list),
@@ -256,7 +256,7 @@ impl TupleStruct {
256256
}
257257
#[automatically_derived]
258258
impl ::core::fmt::Debug for TupleStruct {
259-
#[inline]
259+
#[inline(always)]
260260
fn fmt(&self, f: &mut ::core::fmt::Formatter) -> ::core::fmt::Result {
261261
::core::fmt::Formatter::debug_tuple_field3_finish(
262262
f,
@@ -269,7 +269,7 @@ impl ::core::fmt::Debug for TupleStruct {
269269
}
270270
#[automatically_derived]
271271
impl ::core::clone::Clone for TupleStruct {
272-
#[inline]
272+
#[inline(always)]
273273
fn clone(&self) -> TupleStruct {
274274
TupleStruct(
275275
::core::clone::Clone::clone(&self.0),

src/func/impl.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ impl FuncType {
4141
///
4242
/// # Returns
4343
/// - `true` if the `FuncType` is `Get`; otherwise, `false`.
44-
#[inline]
44+
#[inline(always)]
4545
pub fn is_get(&self) -> bool {
4646
*self == FuncType::Get
4747
}
@@ -53,7 +53,7 @@ impl FuncType {
5353
///
5454
/// # Returns
5555
/// - `true` if the `FuncType` is `GetMut`; otherwise, `false`.
56-
#[inline]
56+
#[inline(always)]
5757
pub fn is_get_mut(&self) -> bool {
5858
*self == FuncType::GetMut
5959
}
@@ -65,7 +65,7 @@ impl FuncType {
6565
///
6666
/// # Returns
6767
/// - `true` if the `FuncType` is `Set`; otherwise, `false`.
68-
#[inline]
68+
#[inline(always)]
6969
pub fn is_set(&self) -> bool {
7070
*self == FuncType::Set
7171
}
@@ -77,7 +77,7 @@ impl FuncType {
7777
///
7878
/// # Returns
7979
/// - `true` if the `FuncType` is `Debug`; otherwise, `false`.
80-
#[inline]
80+
#[inline(always)]
8181
pub fn is_debug(&self) -> bool {
8282
*self == FuncType::Debug
8383
}
@@ -89,7 +89,7 @@ impl FuncType {
8989
///
9090
/// # Returns
9191
/// - `true` if the `FuncType` is `Unknown`; otherwise, `false`.
92-
#[inline]
92+
#[inline(always)]
9393
pub fn is_unknown(&self) -> bool {
9494
*self == Self::Unknown
9595
}
@@ -101,7 +101,7 @@ impl FuncType {
101101
///
102102
/// # Returns
103103
/// - `true` if the `FuncType` parsed from the string is not `Unknown`; otherwise, `false`.
104-
#[inline]
104+
#[inline(always)]
105105
pub fn is_known(func_type_str: &str) -> bool {
106106
let func_type: FuncType = func_type_str.parse::<FuncType>().unwrap_or_default();
107107
func_type != Self::Unknown

src/generate/fn.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ fn generate_named_getter_setter(
8484
let get_quote = |vis: TokenStream2| {
8585
if need_getter {
8686
quote! {
87-
#[inline]
87+
#[inline(always)]
8888
#vis fn #get_name(&self) -> &#attr_ty {
8989
&self.#attr_name_ident
9090
}
@@ -96,7 +96,7 @@ fn generate_named_getter_setter(
9696
let get_mut_quote = |vis: TokenStream2| {
9797
if need_getter_mut {
9898
quote! {
99-
#[inline]
99+
#[inline(always)]
100100
#vis fn #get_mut_name(&mut self) -> &mut #attr_ty {
101101
&mut self.#attr_name_ident
102102
}
@@ -108,7 +108,7 @@ fn generate_named_getter_setter(
108108
let set_quote = |vis: TokenStream2| {
109109
if need_setter {
110110
quote! {
111-
#[inline]
111+
#[inline(always)]
112112
#vis fn #set_name(&mut self, val: #attr_ty) -> &mut Self {
113113
self.#attr_name_ident = val;
114114
self
@@ -201,7 +201,7 @@ fn generate_tuple_getter_setter(
201201
let get_quote = |vis: TokenStream2| {
202202
if need_getter {
203203
quote! {
204-
#[inline]
204+
#[inline(always)]
205205
#vis fn #get_name(&self) -> &#attr_ty {
206206
&self.#field_index
207207
}
@@ -213,7 +213,7 @@ fn generate_tuple_getter_setter(
213213
let get_mut_quote = |vis: TokenStream2| {
214214
if need_getter_mut {
215215
quote! {
216-
#[inline]
216+
#[inline(always)]
217217
#vis fn #get_mut_name(&mut self) -> &mut #attr_ty {
218218
&mut self.#field_index
219219
}
@@ -225,7 +225,7 @@ fn generate_tuple_getter_setter(
225225
let set_quote = |vis: TokenStream2| {
226226
if need_setter {
227227
quote! {
228-
#[inline]
228+
#[inline(always)]
229229
#vis fn #set_name(&mut self, val: #attr_ty) -> &mut Self {
230230
self.#field_index = val;
231231
self

src/visibility/impl.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ impl Visibility {
2424
///
2525
/// # Returns
2626
/// - `true` if the visibility is `Public`; otherwise, `false`.
27-
#[inline]
27+
#[inline(always)]
2828
pub fn is_public(&self) -> bool {
2929
*self == Self::Public
3030
}

0 commit comments

Comments
 (0)