fix: unreverse size and scale builder functions
This commit is contained in:
parent
5711a84275
commit
73ff98b6d6
2 changed files with 5 additions and 6 deletions
|
|
@ -46,7 +46,6 @@ fn linicon() {
|
||||||
"/usr/share/icons/Adwaita/24x24/places/user-home.png",
|
"/usr/share/icons/Adwaita/24x24/places/user-home.png",
|
||||||
));
|
));
|
||||||
|
|
||||||
// Fixme
|
|
||||||
asserting!("Our implementation should return the same result as linicon")
|
asserting!("Our implementation should return the same result as linicon")
|
||||||
.that(&user_home)
|
.that(&user_home)
|
||||||
.is_some()
|
.is_some()
|
||||||
|
|
@ -102,5 +101,5 @@ fn linicon() {
|
||||||
asserting!("But we succeed")
|
asserting!("But we succeed")
|
||||||
.that(&archlinux)
|
.that(&archlinux)
|
||||||
.is_some()
|
.is_some()
|
||||||
.is_equal_to(PathBuf::from("toto"));
|
.is_equal_to(PathBuf::from("/usr/share/pixmaps/archlinux-logo.png"));
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -118,8 +118,8 @@ impl<'a> LookupBuilder<'a> {
|
||||||
/// .with_size(48)
|
/// .with_size(48)
|
||||||
/// .find();
|
/// .find();
|
||||||
/// # }
|
/// # }
|
||||||
pub fn with_size(mut self, scale: u16) -> Self {
|
pub fn with_size(mut self, size: u16) -> Self {
|
||||||
self.scale = scale;
|
self.size = size;
|
||||||
self
|
self
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -134,8 +134,8 @@ impl<'a> LookupBuilder<'a> {
|
||||||
/// .with_scale(2)
|
/// .with_scale(2)
|
||||||
/// .find();
|
/// .find();
|
||||||
/// # }
|
/// # }
|
||||||
pub fn with_scale(mut self, size: u16) -> Self {
|
pub fn with_scale(mut self, scale: u16) -> Self {
|
||||||
self.size = size;
|
self.scale = scale;
|
||||||
self
|
self
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue