Skip to content

Commit

Permalink
backend/demo: Remove version const
Browse files Browse the repository at this point in the history
  • Loading branch information
bilelmoussaoui committed Aug 10, 2024
1 parent e619487 commit 1ee8f96
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 15 deletions.
4 changes: 0 additions & 4 deletions backend-demo/src/account.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
use std::num::NonZeroU32;

use ashpd::{
backend::{
account::{AccountImpl, UserInformationOptions},
Expand All @@ -22,8 +20,6 @@ impl RequestImpl for Account {

#[async_trait]
impl AccountImpl for Account {
const VERSION: NonZeroU32 = NonZeroU32::MIN;

async fn get_information(
&self,
_app_id: AppID,
Expand Down
4 changes: 0 additions & 4 deletions backend-demo/src/screenshot.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
use std::num::NonZeroU32;

use ashpd::{
backend::{
request::RequestImpl,
screenshot::{ColorOptions, ScreenshotImpl, ScreenshotOptions},
Expand All @@ -22,8 +20,6 @@ impl RequestImpl for Screenshot {

#[async_trait]
impl ScreenshotImpl for Screenshot {
const VERSION: NonZeroU32 = NonZeroU32::MIN;

async fn screenshot(
&self,
_app_id: AppID,
Expand Down
4 changes: 1 addition & 3 deletions backend-demo/src/secret.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use std::{collections::HashMap, num::NonZeroU32};
use std::{collections::HashMap};

use ashpd::{
backend::{request::RequestImpl, secret::SecretImpl},
Expand All @@ -20,8 +20,6 @@ impl RequestImpl for Secret {

#[async_trait]
impl SecretImpl for Secret {
const VERSION: NonZeroU32 = NonZeroU32::MIN;

async fn retrieve(
&self,
_app_id: AppID,
Expand Down
4 changes: 0 additions & 4 deletions backend-demo/src/wallpaper.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
use std::num::NonZeroU32;

use ashpd::{
backend::{
request::RequestImpl,
Expand All @@ -22,8 +20,6 @@ impl RequestImpl for Wallpaper {

#[async_trait]
impl WallpaperImpl for Wallpaper {
const VERSION: NonZeroU32 = NonZeroU32::MIN;

async fn with_uri(
&self,
_app_id: AppID,
Expand Down

0 comments on commit 1ee8f96

Please sign in to comment.