-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Use
value::Value
directly in the codebase (#12673)
* Use `value::Value` directly in the codebase This commit modifies the project to use `value::Value` directly and not as a re-export from VRL. The changeset is large but almost entirely mechanical. I would like to experiment with different representations of `Value` -- imagine a world where the `Value` is mostly stack allocated, or where the `Value::Object` doesn't recurse to another heap allocated `Value` outside of the current virtual machine page -- but I realized while making some modifications to that type that its representation was, well, kindly spread through the project. We don't solve that here. Instead we take a single step in that direction. Follow-up work will work a struct shim over the top of the `BTreeMap` inside `Value` so callers are not aware of the `BTreeMap`. That abstraction is what will allow us to fiddle with the representation, so long as we hew to the enum nature of `Value`. Signed-off-by: Brian L. Troutwine <[email protected]> * test dings Signed-off-by: Brian L. Troutwine <[email protected]> * test dings Signed-off-by: Brian L. Troutwine <[email protected]> * reviews Signed-off-by: Brian L. Troutwine <[email protected]> * test dings Signed-off-by: Brian L. Troutwine <[email protected]> * newline ding Signed-off-by: Brian L. Troutwine <[email protected]> * clippy dings Signed-off-by: Brian L. Troutwine <[email protected]>
- Loading branch information
Showing
396 changed files
with
1,078 additions
and
737 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,7 +1,9 @@ | ||
# Using defaults. | ||
# Not stable yet. | ||
# indent_style = "Block" | ||
# group_imports = "StdExternalCrate" | ||
# imports_granularity = "Crate" | ||
reorder_imports = true | ||
edition = "2021" | ||
newline_style = "unix" | ||
reorder_imports = true | ||
|
||
# Nightly only features | ||
# unstable_features = true | ||
# imports_granularity = "Crate" | ||
# group_imports = "StdExternalCrate" | ||
# indent_style = "Block" |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
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
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
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
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.