@@ -350,7 +350,6 @@ pub trait RootContext: Context {
350
350
/// ```rust
351
351
/// use proxy_wasm::traits::*;
352
352
/// use proxy_wasm::types::*;
353
- /// use serde_json;
354
353
/// use log::debug;
355
354
///
356
355
/// struct MyRootContext;
@@ -365,7 +364,8 @@ pub trait RootContext: Context {
365
364
/// fn on_vm_start(&mut self, _vm_configuration_size: usize) -> bool {
366
365
/// let vm_configuration = self.get_vm_configuration().unwrap();
367
366
///
368
- /// let parsed_vm_configuration: MyVmConfiguration = serde_json::from_slice::<MyVmConfiguration>(&vm_configuration).unwrap();
367
+ /// let parsed_vm_configuration: MyVmConfiguration =
368
+ /// serde_json::from_slice::<MyVmConfiguration>(&vm_configuration).unwrap();
369
369
///
370
370
/// // Do something with the parsed vm configuration
371
371
/// debug!("vm_configuration: {:?}", parsed_vm_configuration)
@@ -389,7 +389,6 @@ pub trait RootContext: Context {
389
389
/// ```rust
390
390
/// use proxy_wasm::traits::*;
391
391
/// use proxy_wasm::types::*;
392
- /// use serde_json;
393
392
/// use log::debug;
394
393
///
395
394
/// struct MyRootContext;
@@ -404,7 +403,8 @@ pub trait RootContext: Context {
404
403
/// fn on_vm_start(&mut self, _vm_configuration_size: usize) -> bool {
405
404
/// let vm_configuration = self.get_vm_configuration().unwrap();
406
405
///
407
- /// let parsed_vm_configuration: MyVmConfiguration = serde_json::from_slice::<MyVmConfiguration>(&vm_configuration).unwrap();
406
+ /// let parsed_vm_configuration: MyVmConfiguration =
407
+ /// serde_json::from_slice::<MyVmConfiguration>(&vm_configuration).unwrap();
408
408
///
409
409
/// // Do something with the parsed vm configuration
410
410
/// debug!("vm_configuration: {:?}", parsed_vm_configuration)
@@ -433,7 +433,6 @@ pub trait RootContext: Context {
433
433
/// ```rust
434
434
/// use proxy_wasm::traits::*;
435
435
/// use proxy_wasm::types::*;
436
- /// use serde_json;
437
436
/// use log::debug;
438
437
///
439
438
/// struct MyRootContext;
@@ -448,7 +447,8 @@ pub trait RootContext: Context {
448
447
/// fn on_configure(&mut self, _plugin_configuration_size: usize) -> bool {
449
448
/// let plugin_configuration = self.get_plugin_configuration().unwrap();
450
449
///
451
- /// let parsed_plugin_configuration: MyPluginConfiguration = serde_json::from_slice::<MyPluginConfiguration>(&plugin_configuration).unwrap();
450
+ /// let parsed_plugin_configuration: MyPluginConfiguration =
451
+ /// serde_json::from_slice::<MyPluginConfiguration>(&plugin_configuration).unwrap();
452
452
///
453
453
/// // Do something with the parsed plugin configuration
454
454
/// debug!("plugin_configuration: {:?}", parsed_plugin_configuration)
@@ -472,7 +472,6 @@ pub trait RootContext: Context {
472
472
/// ```rust
473
473
/// use proxy_wasm::traits::*;
474
474
/// use proxy_wasm::types::*;
475
- /// use serde_json;
476
475
/// use log::debug;
477
476
///
478
477
/// struct MyRootContext;
@@ -487,7 +486,8 @@ pub trait RootContext: Context {
487
486
/// fn on_configure(&mut self, _plugin_configuration_size: usize) -> bool {
488
487
/// let plugin_configuration = self.get_plugin_configuration().unwrap();
489
488
///
490
- /// let parsed_plugin_configuration: MyPluginConfiguration = serde_json::from_slice::<MyPluginConfiguration>(&plugin_configuration).unwrap();
489
+ /// let parsed_plugin_configuration: MyPluginConfiguration =
490
+ /// serde_json::from_slice::<MyPluginConfiguration>(&plugin_configuration).unwrap();
491
491
///
492
492
/// // Do something with the parsed plugin configuration
493
493
/// debug!("plugin_configuration: {:?}", parsed_plugin_configuration)
0 commit comments