File tree Expand file tree Collapse file tree 5 files changed +17
-11
lines changed Expand file tree Collapse file tree 5 files changed +17
-11
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ " eppo_core " : patch
3
+ " rust-sdk " : patch
4
+ " ruby-sdk " : patch
5
+ " python-sdk " : patch
6
+ ---
7
+
8
+ Bump Minimum Supported Rust Version (MSRV) to 1.80.0.
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ repository = "https://github.com/Eppo-exp/rust-sdk"
7
7
license = " MIT"
8
8
keywords = [" eppo" , " feature-flags" ]
9
9
categories = [" config" ]
10
- rust-version = " 1.75 .0"
10
+ rust-version = " 1.80 .0"
11
11
12
12
[features ]
13
13
# Unstable feature flag for an upcoming feature.
Original file line number Diff line number Diff line change @@ -76,13 +76,11 @@ impl Configuration {
76
76
/// initialization.
77
77
pub fn get_bandits_configuration ( & self ) -> Option < Cow < [ u8 ] > > {
78
78
let bandits = self . bandits . as_ref ( ) ?;
79
- let json = serde_json:: to_vec ( bandits) ;
80
-
81
- // TODO: replace with .inspect_err() once we bump MSRV to 1.76
82
- if let Err ( err) = & json {
83
- log:: warn!( target: "eppo" , "failed to serialize bandits: {err:?}" ) ;
84
- }
85
-
86
- json. ok ( ) . map ( Cow :: Owned )
79
+ serde_json:: to_vec ( bandits)
80
+ . inspect_err ( |err| {
81
+ log:: warn!( target: "eppo" , "failed to serialize bandits: {err:?}" ) ;
82
+ } )
83
+ . ok ( )
84
+ . map ( Cow :: Owned )
87
85
}
88
86
}
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ version = "3.4.5"
5
5
edition = " 2021"
6
6
license = " MIT"
7
7
publish = false
8
- rust-version = " 1.75 .0"
8
+ rust-version = " 1.80 .0"
9
9
10
10
[lib ]
11
11
crate-type = [" cdylib" ]
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ repository = "https://github.com/Eppo-exp/rust-sdk"
8
8
license = " MIT"
9
9
keywords = [" eppo" , " feature-flags" ]
10
10
categories = [" config" ]
11
- rust-version = " 1.75 .0"
11
+ rust-version = " 1.80 .0"
12
12
13
13
[dependencies ]
14
14
eppo_core = { version = " =8.0.2" , path = " ../eppo_core" }
You can’t perform that action at this time.
0 commit comments