-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactoring errors & assignment (#41)
* refactoring errors & assignment * fixes assign offset * fixes creation of object in assignment * backs out snafu * quick cleanup * fixes compiler errors in commented out tests - 4 tests still failing * refactoring but not done * assignment wip * assignment refactor is close but still needs work * fixes pathing issues in assignment * still wip * fixes assign * removes println * removes error.rs * minor docs * `Pointer::assign` now accepts `&mut A` `where A: Assign` it now simply calls A::assign * moves resolve tests * adds TODOs to lib.rs * adds tests for delete * fixes parsing of "/" pointer * adds more parse tests, some of which are failing * minor resolve test output change * adds a couple more test cases for parsing * fixes tests * `assigned_to` of `Assignment` to properly records the location of `assigned` * adds comments * minor comment update * deletes Pointer::partial_path * Update src/lib.rs Co-authored-by: André Mello <3285133+asmello@users.noreply.github.com> * Update src/assign.rs Co-authored-by: André Mello <3285133+asmello@users.noreply.github.com> * Update src/assign.rs Co-authored-by: André Mello <3285133+asmello@users.noreply.github.com> * Update src/lib.rs Co-authored-by: André Mello <3285133+asmello@users.noreply.github.com> * Update src/lib.rs Co-authored-by: André Mello <3285133+asmello@users.noreply.github.com> * Update src/lib.rs Co-authored-by: André Mello <3285133+asmello@users.noreply.github.com> * Update src/lib.rs Co-authored-by: André Mello <3285133+asmello@users.noreply.github.com> * Update src/lib.rs Co-authored-by: André Mello <3285133+asmello@users.noreply.github.com> * Update src/lib.rs Co-authored-by: André Mello <3285133+asmello@users.noreply.github.com> * Update src/lib.rs Co-authored-by: André Mello <3285133+asmello@users.noreply.github.com> * Update src/lib.rs Co-authored-by: André Mello <3285133+asmello@users.noreply.github.com> * Update src/lib.rs Co-authored-by: André Mello <3285133+asmello@users.noreply.github.com> * possible refactor * am refactors `Assign`, `Delete`, `Resolve`, `ResolveMut` to include associated type `Value` * spiking an idea * adds a potential solution to expansion in assign * `Strategy` -> `AutoExpand` * changes the signature of `Assign::assign` to accept new `Expansion` enum * fixes expect message * refactors and finishes the first draft of `Expand` * fixes tests * fixes doc tests * style change of Cargo.toml, prep for insta * removes yaml feature flag. no longer planning to support * walks back `Expansion` & `Expand`, removes `Assignment` * removes FailedToExpand from `AssignError` * walks back taplo style * spacing * fixes build * spacing * walks back ops feature flags * fixes doc tests * CHANGELOG * adds skeleton for failing test to demonstrate issue #44 --------- Co-authored-by: André Mello <3285133+asmello@users.noreply.github.com>
- Loading branch information
Showing
13 changed files
with
1,441 additions
and
1,170 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,24 @@ | ||
include = ["**/*.toml", "**/Cargo.toml", "Cargo.toml"] | ||
[formatting] | ||
align_comments = true | ||
align_entries = true | ||
allowed_blank_lines = 1 | ||
reorder_arrays = false | ||
reorder_keys = true | ||
trailing_newline = true | ||
|
||
# indent_tables = true | ||
# indent_entries = true | ||
align_comments = true | ||
align_entries = true | ||
allowed_blank_lines = 1 | ||
indent_entries = false | ||
reorder_arrays = false | ||
reorder_keys = true | ||
trailing_newline = true | ||
|
||
[[rule]] | ||
formatting.align_entries = true | ||
formatting.array_auto_expand = false | ||
formatting.reorder_arrays = true | ||
formatting.reorder_keys = true | ||
include = ["Cargo.toml", "**/Cargo.toml"] | ||
keys = [ | ||
"dependencies", | ||
"dev-dependencies", | ||
"build-dependencies", | ||
"workspace.dependencies", | ||
"workspace.dev-dependencies", | ||
"workspace.build-dependencies", | ||
] | ||
formatting.align_entries = true | ||
formatting.array_auto_expand = false | ||
formatting.reorder_arrays = true | ||
formatting.reorder_keys = true | ||
include = ["Cargo.toml", "**/Cargo.toml"] | ||
keys = [ | ||
"dependencies", | ||
"dev-dependencies", | ||
"build-dependencies", | ||
"workspace.dependencies", | ||
"workspace.dev-dependencies", | ||
"workspace.build-dependencies", | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.