mirror of
https://github.com/aljazceru/notedeck.git
synced 2025-12-19 09:34:19 +01:00
drive-by clippy fixes
This commit is contained in:
@@ -14,7 +14,7 @@ pub struct PubkeyRef<'a>(&'a [u8; 32]);
|
|||||||
|
|
||||||
static HRP_NPUB: bech32::Hrp = bech32::Hrp::parse_unchecked("npub");
|
static HRP_NPUB: bech32::Hrp = bech32::Hrp::parse_unchecked("npub");
|
||||||
|
|
||||||
impl<'a> Borrow<[u8; 32]> for PubkeyRef<'a> {
|
impl Borrow<[u8; 32]> for PubkeyRef<'_> {
|
||||||
fn borrow(&self) -> &[u8; 32] {
|
fn borrow(&self) -> &[u8; 32] {
|
||||||
self.0
|
self.0
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -76,7 +76,7 @@ impl Borrow<[u8; 32]> for RootNoteIdBuf {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
impl<'a> Borrow<[u8; 32]> for RootNoteId<'a> {
|
impl Borrow<[u8; 32]> for RootNoteId<'_> {
|
||||||
fn borrow(&self) -> &[u8; 32] {
|
fn borrow(&self) -> &[u8; 32] {
|
||||||
self.0
|
self.0
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -75,7 +75,7 @@ async fn main() {
|
|||||||
let args: Vec<String> = std::env::args().collect();
|
let args: Vec<String> = std::env::args().collect();
|
||||||
let ctx = &cc.egui_ctx;
|
let ctx = &cc.egui_ctx;
|
||||||
let mut notedeck = Notedeck::new(ctx, base_path, &args);
|
let mut notedeck = Notedeck::new(ctx, base_path, &args);
|
||||||
setup_chrome(ctx, ¬edeck.args(), notedeck.theme());
|
setup_chrome(ctx, notedeck.args(), notedeck.theme());
|
||||||
|
|
||||||
let damus = Damus::new(&mut notedeck.app_context(), &args);
|
let damus = Damus::new(&mut notedeck.app_context(), &args);
|
||||||
// TODO: move "chrome" frame over Damus app somehow
|
// TODO: move "chrome" frame over Damus app somehow
|
||||||
|
|||||||
@@ -33,7 +33,7 @@ impl PreviewRunner {
|
|||||||
let ctx = &cc.egui_ctx;
|
let ctx = &cc.egui_ctx;
|
||||||
|
|
||||||
let mut notedeck = Notedeck::new(ctx, &base_path, &args);
|
let mut notedeck = Notedeck::new(ctx, &base_path, &args);
|
||||||
setup_chrome(ctx, ¬edeck.args(), notedeck.theme());
|
setup_chrome(ctx, notedeck.args(), notedeck.theme());
|
||||||
|
|
||||||
notedeck.set_app(PreviewApp::new(preview));
|
notedeck.set_app(PreviewApp::new(preview));
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user