From 0218b92354637472a19062e70c4e213c86c6e9c2 Mon Sep 17 00:00:00 2001 From: Evgeny Bovykin Date: Tue, 5 Nov 2024 17:23:57 +0100 Subject: [PATCH] Make Context#mode field pub (#286) 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 --- pilota-build/src/middle/context.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pilota-build/src/middle/context.rs b/pilota-build/src/middle/context.rs index 0007cc2..a2521ce 100644 --- a/pilota-build/src/middle/context.rs +++ b/pilota-build/src/middle/context.rs @@ -66,7 +66,7 @@ pub struct Context { pub(crate) change_case: bool, pub(crate) codegen_items: Arc<[DefId]>, pub(crate) path_resolver: Arc, - pub(crate) mode: Arc, + pub mode: Arc, pub(crate) split: bool, pub(crate) keep_unknown_fields: Arc>, pub location_map: Arc>,