File tree Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 1
- pub ( crate ) static DESTINATION : & str = "org.freedesktop.secrets" ;
2
- pub ( crate ) static PATH : & str = "/org/freedesktop/secrets" ;
1
+ pub ( crate ) const DESTINATION : & str = "org.freedesktop.secrets" ;
2
+ pub ( crate ) const PATH : & str = "/org/freedesktop/secrets" ;
3
3
4
4
/// A common trait implemented by objects that can be
5
5
/// locked or unlocked. Like [`Collection`] or [`Item`].
Original file line number Diff line number Diff line change @@ -3,10 +3,10 @@ use std::collections::HashMap;
3
3
use serde:: ser:: { Serialize , SerializeMap } ;
4
4
use zbus:: zvariant:: { Type , Value } ;
5
5
6
- static ITEM_PROPERTY_LABEL : & str = "org.freedesktop.Secret.Item.Label" ;
7
- static ITEM_PROPERTY_ATTRIBUTES : & str = "org.freedesktop.Secret.Item.Attributes" ;
6
+ const ITEM_PROPERTY_LABEL : & str = "org.freedesktop.Secret.Item.Label" ;
7
+ const ITEM_PROPERTY_ATTRIBUTES : & str = "org.freedesktop.Secret.Item.Attributes" ;
8
8
9
- static COLLECTION_PROPERTY_LABEL : & str = "org.freedesktop.Secret.Collection.Label" ;
9
+ const COLLECTION_PROPERTY_LABEL : & str = "org.freedesktop.Secret.Collection.Label" ;
10
10
11
11
#[ derive( Debug , Type ) ]
12
12
#[ zvariant( signature = "a{sv}" ) ]
Original file line number Diff line number Diff line change 35
35
/// The default collection alias.
36
36
///
37
37
/// In general, you are supposed to use [`Service::default_collection`].
38
- pub static DEFAULT_COLLECTION : & str = "default" ;
38
+ pub const DEFAULT_COLLECTION : & str = "default" ;
39
39
40
40
/// A session collection.
41
41
///
42
42
/// The collection is cleared when the user ends the session.
43
- pub static SESSION_COLLECTION : & str = "session" ;
43
+ pub const SESSION_COLLECTION : & str = "session" ;
44
44
45
45
/// Barebone DBus API of the Secret Service specifications.
46
46
///
You can’t perform that action at this time.
0 commit comments