Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
sfackler committed Feb 14, 2024
1 parent 408e1e2 commit 9f4ce72
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
5 changes: 5 additions & 0 deletions changelog/@unreleased/pr-300.v2.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
type: feature
feature:
description: Fix the build
links:
- https://github.com/palantir/conjure-rust/pull/300
2 changes: 1 addition & 1 deletion conjure-codegen/src/context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1091,7 +1091,7 @@ impl Context {
.cloned()
.or_else(|| self.type_log_safety(f.type_()))
})
.fold(Some(LogSafety::Safe), |a, b| self.combine_safety(a, b)),
.try_fold(LogSafety::Safe, |a, b| self.combine_safety(Some(a), b)),
TypeDefinition::Union(union_) => union_
.union_()
.iter()
Expand Down
2 changes: 1 addition & 1 deletion conjure-object/src/double_key.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ impl DerefMut for DoubleKey {
impl PartialOrd for DoubleKey {
#[inline]
fn partial_cmp(&self, other: &Self) -> Option<Ordering> {
OrderedFloat(self.0).partial_cmp(&OrderedFloat(other.0))
Some(self.cmp(other))
}
}

Expand Down
2 changes: 1 addition & 1 deletion conjure-object/src/resource_identifier/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ impl Eq for ResourceIdentifier {}
impl PartialOrd for ResourceIdentifier {
#[inline]
fn partial_cmp(&self, other: &ResourceIdentifier) -> Option<Ordering> {
self.rid.partial_cmp(&other.rid)
Some(self.cmp(other))
}

#[inline]
Expand Down

0 comments on commit 9f4ce72

Please sign in to comment.