Skip to content

Commit

Permalink
fix: owned_future_value serde
Browse files Browse the repository at this point in the history
  • Loading branch information
Leeeon233 committed May 24, 2024
1 parent 08a1cc2 commit 0645958
Show file tree
Hide file tree
Showing 5 changed files with 888 additions and 23 deletions.
30 changes: 15 additions & 15 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions crates/fuzz/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ publish = false
loro-without-counter = { path = "../loro", package = "loro" }
loro = { git = "https://github.com/loro-dev/loro.git", features = [
"counter",
], rev = "042f5a95317d44c43a357598a890b7a62d88a489" }
], rev = "08a1cc2106e3c017fbaa9d00c1710c119558204f" }
loro-common = { git = "https://github.com/loro-dev/loro.git", features = [
"counter",
], rev = "042f5a95317d44c43a357598a890b7a62d88a489" }
], rev = "08a1cc2106e3c017fbaa9d00c1710c119558204f" }
# loro = { path = "../loro", package = "loro", features = ["counter"] }
# loro-common = { path = "../loro", package = "loro", features = ["counter"] }
# loro-without-counter = { git = "https://github.com/loro-dev/loro.git", rev = "32d0177f29475d50691d3ca0fd46bd4c53c98559", package = "loro" }
Expand Down
8 changes: 5 additions & 3 deletions crates/loro-internal/src/encoding/json_schema.rs
Original file line number Diff line number Diff line change
Expand Up @@ -374,9 +374,11 @@ fn encode_changes<'a, 'c: 'a>(
match f {
FutureInnerContent::Counter(x) => OpContent::Future(op::FutureOpWrapper {
prop: *x as i32,
value: op::FutureOp::Counter(Cow::Owned(OwnedValue::Future(
super::value::OwnedFutureValue::Counter,
))),
value: op::FutureOp::Counter(std::borrow::Cow::Owned(
super::value::OwnedValue::Future(
super::value::OwnedFutureValue::Counter,
),
)),
}),
_ => unreachable!(),
}
Expand Down
Loading

0 comments on commit 0645958

Please sign in to comment.