Add rustfmt.toml
Add rustfmt.toml that is being used by projects under smithay's umbrella.
This commit is contained in:
parent
7fc533d55f
commit
597086c42c
8 changed files with 29 additions and 84 deletions
12
src/env.rs
12
src/env.rs
|
|
@ -20,11 +20,7 @@ impl SmithayClipboard {
|
|||
let mut seats = SeatHandler::new();
|
||||
let data_device_manager = DataDeviceHandler::init(&mut seats);
|
||||
let primary_selection_manager = PrimarySelectionHandler::init(&mut seats);
|
||||
Self {
|
||||
seats,
|
||||
primary_selection_manager,
|
||||
data_device_manager,
|
||||
}
|
||||
Self { seats, primary_selection_manager, data_device_manager }
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -44,13 +40,11 @@ impl PrimarySelectionHandling for SmithayClipboard {
|
|||
seat: &WlSeat,
|
||||
f: F,
|
||||
) -> Result<(), ()> {
|
||||
self.primary_selection_manager
|
||||
.with_primary_selection(seat, f)
|
||||
self.primary_selection_manager.with_primary_selection(seat, f)
|
||||
}
|
||||
|
||||
fn get_primary_selection_manager(&self) -> Option<PrimarySelectionDeviceManager> {
|
||||
self.primary_selection_manager
|
||||
.get_primary_selection_manager()
|
||||
self.primary_selection_manager.get_primary_selection_manager()
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue