Skip to content

Commit cacdaac

Browse files
authored
Undo faulty change of doc comment
1 parent 2ddc236 commit cacdaac

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

Diff for: src/adapter/adapter_trait.rs

+6-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,12 @@ use webthings_gateway_ipc_types::DeviceWithoutId;
2626
/// struct ExampleAdapter;
2727
///
2828
/// #[async_trait]
29-
/// impl Adapter for ExampleAdapter {}
29+
/// impl Adapter for ExampleAdapter {
30+
/// async fn on_remove_device(&mut self, device_id: String) -> Result<(), String> {
31+
/// log::debug!("Device {} removed", device_id);
32+
/// Ok(())
33+
/// }
34+
/// }
3035
///
3136
/// impl ExampleAdapter {
3237
/// # pub fn new(adapter_handle: AdapterHandle) -> Self {

0 commit comments

Comments
 (0)