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

rustfmt can do this automatically, but only when run with a nightly toolchain, so it needs to be manually done for now - see rslib/rusfmt.toml
13 lines
446 B
Rust
13 lines
446 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, backend_proto::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,
|
|
}
|
|
}
|
|
}
|