Skip to content

Commit

Permalink
Make Context#mode field pub (#286)
Browse files Browse the repository at this point in the history
feat: make Context#mode field pub instead of pub(crate)

This change will allow to locate the absolute paths to the generated files using Context#mode + Context#item_path
  • Loading branch information
missingdays authored Nov 5, 2024
1 parent 16ad613 commit 0218b92
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pilota-build/src/middle/context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ pub struct Context {
pub(crate) change_case: bool,
pub(crate) codegen_items: Arc<[DefId]>,
pub(crate) path_resolver: Arc<dyn PathResolver>,
pub(crate) mode: Arc<Mode>,
pub mode: Arc<Mode>,
pub(crate) split: bool,
pub(crate) keep_unknown_fields: Arc<FxHashSet<DefId>>,
pub location_map: Arc<FxHashMap<DefId, DefLocation>>,
Expand Down

0 comments on commit 0218b92

Please sign in to comment.