Skip to content

Commit

Permalink
bugfix when building without optimization feature
Browse files Browse the repository at this point in the history
  • Loading branch information
chrjabs committed Aug 21, 2023
1 parent f2a1801 commit f191889
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "rustsat"
version = "0.1.0"
version = "0.1.1"
edition = "2021"
authors = ["Christoph Jabs <[email protected]>"]
license = "MIT"
Expand Down
2 changes: 1 addition & 1 deletion src/instances/fio/opb.rs
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ fn opb_data(input: &str, opts: Options) -> IResult<&str, OpbData> {
#[cfg(feature = "optimization")]
map_res(|i| objective(i, opts), |obj| Ok::<_, ()>(OpbData::Obj(obj))),
#[cfg(not(feature = "optimization"))]
map_res(objective, |obj| {
map_res(|i| objective(i, opts), |obj| {
Ok::<_, ()>(OpbData::Obj(String::from(obj)))
}),
))(input)
Expand Down

0 comments on commit f191889

Please sign in to comment.