mirror of
https://github.com/microsoft/regorus.git
synced 2026-08-05 02:16:11 +00:00
fix: Clippy warnings (#424)
Also schedule works to be run at 8:00 AM everyday. Signed-off-by: Anand Krishnamoorthi <anakrish@microsoft.com>
This commit is contained in:
committed by
GitHub
parent
444b2970a1
commit
8ee1cf3298
+4
-4
@@ -403,13 +403,13 @@ impl Number {
|
||||
|
||||
pub fn format_bin(&self) -> String {
|
||||
self.ensure_integer()
|
||||
.map(|a| format!("{:b}", a))
|
||||
.map(|a| format!("{a:b}"))
|
||||
.unwrap_or("".to_string())
|
||||
}
|
||||
|
||||
pub fn format_octal(&self) -> String {
|
||||
self.ensure_integer()
|
||||
.map(|a| format!("{:o}", a))
|
||||
.map(|a| format!("{a:o}"))
|
||||
.unwrap_or("".to_string())
|
||||
}
|
||||
|
||||
@@ -469,13 +469,13 @@ impl Number {
|
||||
|
||||
pub fn format_hex(&self) -> String {
|
||||
self.ensure_integer()
|
||||
.map(|a| format!("{:x}", a))
|
||||
.map(|a| format!("{a:x}"))
|
||||
.unwrap_or("".to_string())
|
||||
}
|
||||
|
||||
pub fn format_big_hex(&self) -> String {
|
||||
self.ensure_integer()
|
||||
.map(|a| format!("{:X}", a))
|
||||
.map(|a| format!("{a:X}"))
|
||||
.unwrap_or("".to_string())
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user