mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 22:12:21 -04:00

* Prepare to switch Rust import style * Run nightly format Closes #2320 * Clean up a few imports * Enable comment wrapping * Wrap comments
14 lines
451 B
Rust
14 lines
451 B
Rust
// Copyright: Ankitects Pty Ltd and contributors
|
|
// License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
|
|
|
use crate::adding::DeckAndNotetype;
|
|
use crate::pb::notes::DeckAndNotetype as DeckAndNotetypeProto;
|
|
|
|
impl From<DeckAndNotetype> for DeckAndNotetypeProto {
|
|
fn from(s: DeckAndNotetype) -> Self {
|
|
DeckAndNotetypeProto {
|
|
deck_id: s.deck_id.0,
|
|
notetype_id: s.notetype_id.0,
|
|
}
|
|
}
|
|
}
|